X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone-script;h=60dc2a9d8854fd08c708d4a75f1c887d1d724b9f;hb=3e386508f87278610d1892aaaa08cd17907f71c5;hp=a808c02f17160b6c72212ec02cff05a687f65d35;hpb=1cadb5a2719eef7dc4e707ee2f796c94661f4622;p=git.git diff --git a/git-clone-script b/git-clone-script index a808c02f..60dc2a9d 100755 --- a/git-clone-script +++ b/git-clone-script @@ -89,8 +89,17 @@ yes,yes) rsync $quiet -avz --ignore-existing "$repo/refs/" "$D/.git/refs/" ;; http://*) - echo "Somebody should add http fetch" >&2 - exit 1 + git-clone-dumb-http "$repo" "$D" + case "$?" in + 2) + echo "Somebody should define smarter http server protocol" >&2 + exit 1 + ;; + 0) + ;; + *) + exit + esac ;; *) cd "$D" && case "$upload_pack" in