@matheusbsbs / matheus-bagliano / commits / 7e8c8255e9
Fork 0

make git clone -q suppress the noise with http fetch

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>

Chris Wright committed Mar 19, 2007 at 19:18 UTC 7e8c8255e9bf33dd046b95c4bd1ef554ad3c71b2
1 file changed +2 -1
git-clone.sh
+2 -1
@@ -42,6 +42,7 @@ clone_dumb_http () {
42 http_fetch "$1/info/refs" "$clone_tmp/refs" ||
43 die "Cannot get remote repository information.
44 Perhaps git-update-server-info needs to be run there?"
45 + test "z$quiet" = z && v=-v || v=
46 while read sha1 refname
47 do
48 name=`expr "z$refname" : 'zrefs/\(.*\)'` &&
@@ -59,7 +60,7 @@ Perhaps git-update-server-info needs to be run there?"
60 else
61 tname=$name
62 fi
62 - git-http-fetch -v -a -w "$tname" "$name" "$1/" || exit 1
63 + git-http-fetch $v -a -w "$tname" "$name" "$1/" || exit 1
64 done <"$clone_tmp/refs"
65 rm -fr "$clone_tmp"
66 http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" ||