summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-07-03 10:47:58 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-04 10:12:26 -0700
commitd9fb395ae30b50e8a1059338884090b574d8a3e0 (patch)
treead3eeb323992c2eaba2b5acfa02b871e28d8d5a3 /git-repack.sh
parent54adf3706c5c799584c1bcdcac96fb3285b97de4 (diff)
downloadgit-d9fb395ae30b50e8a1059338884090b574d8a3e0.tar.gz
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>
Diffstat (limited to 'git-repack.sh')
-rwxr-xr-xgit-repack.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-repack.sh b/git-repack.sh
index 3644a5a4d2..b5c667110d 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -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"