Browse Source

git-repack -- respect -q and be quiet

git-repack was passing the -q along to pack-objects but ignoring it
itself. Correct the oversight.
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Martin Langhoff 19 years ago committed by Junio C Hamano
parent
commit
1054dcd165
  1. 5
      git-repack.sh

5
git-repack.sh

@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev_list 2>&1 | @@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev_list 2>&1 |
if [ -z "$name" ]; then
echo Nothing new to pack.
else
echo "Pack pack-$name created."

if test "$quiet" != '-q'; then
echo "Pack pack-$name created."
fi
mkdir -p "$PACKDIR" || exit

mv .tmp-pack-$name.pack "$PACKDIR/pack-$name.pack" &&

Loading…
Cancel
Save