Makefile: only track src folder in review

This commit is contained in:
Ryan Heywood 2024-01-18 18:52:33 -05:00
parent ab53b3e495
commit 604627626e
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
1 changed files with 4 additions and 1 deletions

View File

@ -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 .