Makefile: only track src folder in review
This commit is contained in:
parent
ab53b3e495
commit
604627626e
5
Makefile
5
Makefile
|
@ -24,12 +24,15 @@ review:
|
|||
git -C $(TEMP_REPO) reset --hard 'HEAD^1'
|
||||
# Fetch files for BASE_REF
|
||||
cd $(TEMP_REPO) && CARGO_HOME=$(TEMP_REPO)/cargo-home cargo fetch
|
||||
echo "cargo-home/registry/cache" >> $(TEMP_REPO)/.gitignore
|
||||
echo "cargo-home/registry/index" >> $(TEMP_REPO)/.gitignore
|
||||
echo "cargo-home/registry/CACHEDIR.TAG" >> $(TEMP_REPO)/.gitignore
|
||||
git -C $(TEMP_REPO) add .
|
||||
git -C $(TEMP_REPO) commit --no-gpg-sign -m "base ref: $(BASE_REF)"
|
||||
# git -C $(TEMP_REPO) ls-files -z | (cd $(TEMP_REPO); xargs -0 -n1 rm)
|
||||
git -C $(TEMP_REPO) fetch origin $(HEAD_REF_PARSED)
|
||||
git -C $(TEMP_REPO) merge --no-commit $(HEAD_REF_PARSED)
|
||||
rm -rf $(TEMP_REPO)/cargo-home
|
||||
rm -rf $(TEMP_REPO)/cargo-home/registry/src
|
||||
# Fetch files for HEAD_REF
|
||||
cd $(TEMP_REPO) && CARGO_HOME=$(TEMP_REPO)/cargo-home cargo fetch
|
||||
git -C $(TEMP_REPO) add -A .
|
||||
|
|
Loading…
Reference in New Issue