From: Jim Meyering Date: Mon, 23 Oct 2006 13:59:48 +0000 (+0200) Subject: git-clone: honor --quiet X-Git-Tag: v1.4.3.2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=810799ecab6f9164401416988d9d79270315ba18;p=git.git git-clone: honor --quiet 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 Signed-off-by: Junio C Hamano --- diff --git a/git-clone.sh b/git-clone.sh index bf54a1150..24b119537 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -414,7 +414,8 @@ Pull: refs/heads/$head_points_at:$origin_track" && 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"