Skip to content

Commit

Permalink
make git clone -q suppress the noise with http fetch
Browse files Browse the repository at this point in the history
We already have -q in git clone.  So for those who care to suppress
the noise during an http based clone, make -q actually do a quiet
http fetch.

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Cc: Fernando Herrera <fherrera@onirica.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Chris Wright authored and Junio C Hamano committed Mar 20, 2007
1 parent 456cdf6 commit 7e8c825
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 @@ -42,6 +42,7 @@ clone_dumb_http () {
http_fetch "$1/info/refs" "$clone_tmp/refs" ||
die "Cannot get remote repository information.
Perhaps git-update-server-info needs to be run there?"
test "z$quiet" = z && v=-v || v=
while read sha1 refname
do
name=`expr "z$refname" : 'zrefs/\(.*\)'` &&
Expand All @@ -59,7 +60,7 @@ Perhaps git-update-server-info needs to be run there?"
else
tname=$name
fi
git-http-fetch -v -a -w "$tname" "$name" "$1/" || exit 1
git-http-fetch $v -a -w "$tname" "$name" "$1/" || exit 1
done <"$clone_tmp/refs"
rm -fr "$clone_tmp"
http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" ||
Expand Down

0 comments on commit 7e8c825

Please sign in to comment.