commit 7a68fdcd8c8406ffd4702801ad678b785d2b3a84
Author: Kacper Kornet <[email protected]>
Date: Thu Apr 11 18:24:41 2013 +0100
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.
purge-packages.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
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
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/7a68fdcd8c8406ffd4702801ad678b785d2b3a84
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit