summaryrefslogtreecommitdiff
path: root/git-repack.sh
diff options
context:
space:
mode:
authorMartin Langhoff <martin@catalyst.net.nz>2006-06-24 21:41:25 +1200
committerJunio C Hamano <junkio@cox.net>2006-06-24 03:06:30 -0700
commit1054dcd1652644f3a80cf6ce546d24c1fee4066a (patch)
treeccadebd5b652ca6b26a048c98e9a20edc5185fd4 /git-repack.sh
parent86378b32895ee5d788491b8407608a54e5cf064c (diff)
downloadgit-1054dcd1652644f3a80cf6ce546d24c1fee4066a.tar.gz
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>
Diffstat (limited to 'git-repack.sh')
-rwxr-xr-xgit-repack.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-repack.sh b/git-repack.sh
index 4fb3f26e83..eb75c8cda9 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -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" &&