adding git gc to cargo-induced git checkouts. This avoids problems with dangling commits.

This commit is contained in:
holger krekel
2019-11-24 00:35:12 +01:00
parent 8d81c8c1e0
commit 477c818631
2 changed files with 4 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ echo "--- Running $CIRCLE_JOB remotely"
ssh $SSHTARGET <<_HERE
set +x -e
cd $BUILDDIR
# make sure git checkouts are clean (no dangling revspcs)
cargo cache --gc
# let's share the target dir with our last run on this branch/job-type
# cargo will make sure to block/unblock us properly
export CARGO_TARGET_DIR=\`pwd\`/../target

View File

@@ -21,6 +21,8 @@ echo "--- Running $CIRCLE_JOB remotely"
ssh $SSHTARGET <<_HERE
set +x -e
cd $BUILDDIR
# make sure git checkouts are clean (no dangling revspecs)
cargo cache --gc
# let's share the target dir with our last run on this branch/job-type
# cargo will make sure to block/unblock us properly
export CARGO_TARGET_DIR=\`pwd\`/../target