X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-clone.sh;h=cad5c0c088fa997c6f8f36c44e8888a5cb19515e;hb=abda5227770b39bb4abd8f0b4c1a0f69c2778300;hp=de51983584bb0fd015ed75704b72bec8fdb55430;hpb=1589e0517fd22c198799504d6888d5a475024152;p=git.git diff --git a/git-clone.sh b/git-clone.sh index de5198358..cad5c0c08 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -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/\(.*\)'` && @@ -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" "$sha1" "$1" || exit 1 done <"$clone_tmp/refs" rm -fr "$clone_tmp" http_fetch "$1/HEAD" "$GIT_DIR/REMOTE_HEAD" ||