Skip to content

Commit

Permalink
repack: don't report "Nothing new to pack." if -q is given
Browse files Browse the repository at this point in the history
Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Uwe Kleine-König authored and Junio C Hamano committed Jul 4, 2007
1 parent 54adf37 commit d9fb395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion git-repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d9fb395

Please sign in to comment.