# - otherwise git gc is called
set -e
+CALL_GC='yes'
+
topdir=$(rpm -E %_topdir)
purgedir=$topdir/purged
cd "$topdir"
# FIXME: does not currently handle if some pushes are not made!
if [ -n "$status" ] || [ -n "$stash" ]; then
cat <<-EOF
- * Package $pkg - Untracked files or stash not empty. Invoke gc
+ * Package $pkg - Untracked files or stash not empty.
$status
EOF
purge='no'
- git gc
+ [ "$CALL_GC" = 'yes' ] && git gc
fi
git show-ref --heads |\
{ while read sha1 branch; do