Skip to content

Commit 1054dcd

Browse files
Martin LanghoffJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 86378b3 commit 1054dcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

git-repack.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ name=$(git-rev-list --objects --all $rev_list 2>&1 |
4949
if [ -z "$name" ]; then
5050
echo Nothing new to pack.
5151
else
52-
echo "Pack pack-$name created."
53-
52+
if test "$quiet" != '-q'; then
53+
echo "Pack pack-$name created."
54+
fi
5455
mkdir -p "$PACKDIR" || exit
5556

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

0 commit comments

Comments
 (0)