aboutsummaryrefslogtreecommitdiff
path: root/git-clone-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-07-23 17:55:07 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-23 18:28:19 -0700
commitc0a58fbb511028a3500987417376a5cfb2c141da (patch)
tree3a8ebcf4924a1cc0e595a15dc59bda158a92ca23 /git-clone-script
parent61e3ef3620493834ed5997d56d481c171d8bd5ac (diff)
downloadgit-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-xgit-clone-script13
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