[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>
This commit is contained in:
Junio C Hamano
2005-07-23 17:55:07 -07:00
committed by Linus Torvalds
parent 61e3ef3620
commit c0a58fbb51
3 changed files with 63 additions and 3 deletions

View File

@ -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