summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-07-03 08:47:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-04 17:12:26 (GMT)
commitd9fb395ae30b50e8a1059338884090b574d8a3e0 (patch)
treead3eeb323992c2eaba2b5acfa02b871e28d8d5a3 /git-repack.sh
parent54adf3706c5c799584c1bcdcac96fb3285b97de4 (diff)
downloadgit-d9fb395ae30b50e8a1059338884090b574d8a3e0.zip
git-d9fb395ae30b50e8a1059338884090b574d8a3e0.tar.gz
git-d9fb395ae30b50e8a1059338884090b574d8a3e0.tar.bz2
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 3644a5a..b5c6671 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"