diff options
author | Junio C Hamano <junkio@cox.net> | 2005-07-23 17:55:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-23 18:28:19 -0700 |
commit | c0a58fbb511028a3500987417376a5cfb2c141da (patch) | |
tree | 3a8ebcf4924a1cc0e595a15dc59bda158a92ca23 /git-clone-script | |
parent | 61e3ef3620493834ed5997d56d481c171d8bd5ac (diff) | |
download | git-c0a58fbb511028a3500987417376a5cfb2c141da.tar.gz git-c0a58fbb511028a3500987417376a5cfb2c141da.tar.xz |
[PATCH] Support cloning packed repo from dumb http servers.
Using the information prepared with update-server-info, a truly
dumb http server can allow cloning with this client side
support.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'git-clone-script')
-rwxr-xr-x | git-clone-script | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/git-clone-script b/git-clone-script index a808c02f1..60dc2a9d8 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 |