]> git.ipfire.org Git - thirdparty/git.git/commitdiff
repack: don't report "Nothing new to pack." if -q is given
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Tue, 3 Jul 2007 08:47:58 +0000 (10:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Jul 2007 17:12:26 +0000 (10:12 -0700)
Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-repack.sh

index 3644a5a4d24dbf8ef80face0395dfa776df2901d..b5c667110d31fe9e083f8b7d4db727ed63333e37 100755 (executable)
@@ -66,7 +66,9 @@ args="$args $local $quiet $no_reuse$extra"
 names=$(git pack-objects --non-empty --all --reflog $args </dev/null "$PACKTMP") ||
        exit 1
 if [ -z "$names" ]; then
-       echo Nothing new to pack.
+       if test -z "$quiet"; then
+               echo Nothing new to pack.
+       fi
 fi
 for name in $names ; do
        fullbases="$fullbases pack-$name"