git-repack -- respect -q and be quiet
git-repack was passing the -q along to pack-objects but ignoring it itself. Correct the oversight. Signed-off-by: Martin Langhoff <martin@catalyst.net.nz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Martin Langhoff committed
Jun 24, 2006 at 21:41 UTC
1054dcd1652644f3a80cf6ce546d24c1fee4066a
1 file changed
+3
-2
git-repack.sh
+3
-2
@@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev_list 2>&1 |
49
if [ -z "$name" ]; then
50
echo Nothing new to pack.
51
else
52
- echo "Pack pack-$name created."
53
-
52
+ if test "$quiet" != '-q'; then
53
+ echo "Pack pack-$name created."
54
+ fi
55
mkdir -p "$PACKDIR" || exit
56
57
mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" &&