]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
Don't call git-gc by default in purge purge-packages.sh
authorKacper Kornet <draenog@pld-linux.org>
Thu, 11 Apr 2013 17:24:41 +0000 (18:24 +0100)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 11 Apr 2013 18:04:08 +0000 (19:04 +0100)
Call to git-gc is time consuming and usually the benefits are not too
beneficial.

purge-packages.sh

index 90ac6665f03572635d15295e2e8b1a938bc82a52..9886533aaa0b4abda6b13220367dd1f4ced34dd2 100755 (executable)
@@ -4,7 +4,7 @@
 # - otherwise git gc is called
 set -e
 
-CALL_GC=${CALL_GC:-'yes'}
+CALL_GC=${CALL_GC:-'no'}
 
 topdir=$(rpm -E %_topdir)
 purgedir=$topdir/purged
@@ -31,7 +31,7 @@ for pkg in */.git; do
                $status
                EOF
                purge='no'
-               [ "$CALL_GC" = 'yes' ] && git gc
+               [ "$CALL_GC" != 'no' ] && git gc
        fi
        git show-ref --heads |\
        { while read sha1 branch; do
This page took 0.035771 seconds and 4 git commands to generate.