mirror of
https://github.com/chatmail/core.git
synced 2026-04-28 19:06:35 +03:00
adding git gc to cargo-induced git checkouts. This avoids problems with dangling commits.
This commit is contained in:
@@ -25,6 +25,8 @@ echo "--- Running $CIRCLE_JOB remotely"
|
|||||||
ssh $SSHTARGET <<_HERE
|
ssh $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
cd $BUILDDIR
|
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
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
# cargo will make sure to block/unblock us properly
|
# cargo will make sure to block/unblock us properly
|
||||||
export CARGO_TARGET_DIR=\`pwd\`/../target
|
export CARGO_TARGET_DIR=\`pwd\`/../target
|
||||||
|
|||||||
@@ -21,6 +21,8 @@ echo "--- Running $CIRCLE_JOB remotely"
|
|||||||
ssh $SSHTARGET <<_HERE
|
ssh $SSHTARGET <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
cd $BUILDDIR
|
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
|
# let's share the target dir with our last run on this branch/job-type
|
||||||
# cargo will make sure to block/unblock us properly
|
# cargo will make sure to block/unblock us properly
|
||||||
export CARGO_TARGET_DIR=\`pwd\`/../target
|
export CARGO_TARGET_DIR=\`pwd\`/../target
|
||||||
|
|||||||
Reference in New Issue
Block a user