# - otherwise git gc is called
set -e
-CALL_GC=${CALL_GC:-'yes'}
+CALL_GC=${CALL_GC:-'no'}
topdir=$(rpm -E %_topdir)
purgedir=$topdir/purged
cd "$topdir"
+echo "Purging in $topdir, press ENTER to continue"
+read a
+
if [ -d "$purgedir" ]; then
echo >&2 "Previous pruge dir exists: $purgedir, remove it to resume"
exit 1
$status
EOF
purge='no'
- [ "$CALL_GC" = 'yes' ] && git gc
+ [ "$CALL_GC" != 'no' ] && git gc
fi
git show-ref --heads |\
{ while read sha1 branch; do