Git development
 help / color / mirror / Atom feed
* [PATCH] git-clone: honor --quiet
@ 2006-10-23 13:59 Jim Meyering
  0 siblings, 0 replies; only message in thread
From: Jim Meyering @ 2006-10-23 13:59 UTC (permalink / raw)
  To: git

I noticed that a cron-launched "git-clone --quiet" was generating
progress output to standard error -- and thus always spamming me.
The offending output was due to git-clone invoking git-read-tree with
its undocumented -v option.
This change turns off "-v" for --quiet.

Signed-off-by: Jim Meyering <jim@meyering.net>
---
 git-clone.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-clone.sh b/git-clone.sh
index 786d65a..3f006d1 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -401,7 +401,8 @@ Pull: refs/heads/$head_points_at:$origin
 
 	case "$no_checkout" in
 	'')
-		git-read-tree -m -u -v HEAD HEAD
+		test "z$quiet" = z && v=-v || v=
+		git-read-tree -m -u $v HEAD HEAD
 	esac
 fi
 rm -f "$GIT_DIR/CLONE_HEAD" "$GIT_DIR/REMOTE_HEAD"
-- 
1.4.3.1.g178e-dirty

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-23 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-23 13:59 [PATCH] git-clone: honor --quiet Jim Meyering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox