From: Junio C Hamano Date: Mon, 22 Mar 2021 00:20:52 +0000 (-0700) Subject: Meta/cycle-run: prune garbage before each run X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd76584d3ae36a8d15d6eadf1c15246c4669f9ae;p=thirdparty%2Fgit.git Meta/cycle-run: prune garbage before each run --- diff --git a/cycle-run b/cycle-run index 6f71d3935b..347b73b983 100755 --- a/cycle-run +++ b/cycle-run @@ -83,6 +83,14 @@ test_them () { } : >>.Cycle/log +git reflog expire --expire=now --expire-unreachable=now --all +git gc + +for l in .Cycle/log.[0-9a-f]* +do + x=${l##*.} + git rev-parse --verify "$x" >/dev/null 2>&1 || rm -f "$l" +done + git fetch -git rev-list --first-parent --parents $RANGE | -test_them +git rev-list --first-parent --parents $RANGE | test_them