@matheusbsbs / matheus-bagliano / commits / 810799ecab
Fork 0

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 <jim@meyering.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Jim Meyering committed Oct 23, 2006 at 15:59 UTC 810799ecab6f9164401416988d9d79270315ba18
1 file changed +2 -1
git-clone.sh
+2 -1
@@ -414,7 +414,8 @@ Pull: refs/heads/$head_points_at:$origin_track" &&
414
415 case "$no_checkout" in
416 '')
417 - git-read-tree -m -u -v HEAD HEAD
417 + test "z$quiet" = z && v=-v || v=
418 + git-read-tree -m -u $v HEAD HEAD
419 esac
420 fi
421 rm -f "$GIT_DIR/CLONE_HEAD" "$GIT_DIR/REMOTE_HEAD"