Skip to content

Commit

Permalink
git-clone: honor --quiet
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
meyering authored and Junio C Hamano committed Oct 23, 2006
1 parent 0cc6d34 commit 810799e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 810799e

Please sign in to comment.