repack: don't report "Nothing new to pack." if -q is given
Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Uwe Kleine-König committed
Jul 3, 2007 at 10:47 UTC
d9fb395ae30b50e8a1059338884090b574d8a3e0
1 file changed
+3
-1
git-repack.sh
+3
-1
@@ -66,7 +66,9 @@ args="$args $local $quiet $no_reuse$extra"
66
names=$(git pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
67
exit 1
68
if [ -z "$names" ]; then
69
- echo Nothing new to pack.
69
+ if test -z "$quiet"; then
70
+ echo Nothing new to pack.
71
+ fi
72
fi
73
for name in $names ; do
74
fullbases="$fullbases pack-$name"