Skip to content

Commit

Permalink
git-repack -- respect -q and be quiet
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Martin Langhoff authored and Junio C Hamano committed Jun 24, 2006
1 parent 86378b3 commit 1054dcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions git-repack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down

0 comments on commit 1054dcd

Please sign in to comment.