Skip to contentSkip to conversation

git-repack -- respect -q and be quiet

PATCH New Martin Langhoff 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 git-repack -- respect -q and be quiet

git-repack was passing the -q along to pack-objects but ignoring it itself. Correct the oversight.

---
 git-repack.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
git-repack.sh +3 -2
index 4fb3f26..eb75c8c 100755
@@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev
 if [ -z "$name" ]; then
 	echo Nothing new to pack.
 else
-	echo "Pack pack-$name created."
-
+	if test "$quiet" != '-q'; then
+	    echo "Pack pack-$name created."
+	fi
 	mkdir -p "$PACKDIR" || exit
 
 	mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" &&
Signature · 1 line
1.4.1.rc1.g59c8