From: Kacper Kornet Date: Thu, 11 Apr 2013 17:24:41 +0000 (+0100) Subject: Don't call git-gc by default in purge purge-packages.sh X-Git-Tag: auto/th/rpm-build-tools-4.5-8~5^2 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=7a68fdcd8c8406ffd4702801ad678b785d2b3a84;p=packages%2Frpm-build-tools.git Don't call git-gc by default in purge purge-packages.sh Call to git-gc is time consuming and usually the benefits are not too beneficial. --- diff --git a/purge-packages.sh b/purge-packages.sh index 90ac666..9886533 100755 --- a/purge-packages.sh +++ b/purge-packages.sh @@ -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