[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:
committed by
Linus Torvalds
parent
61e3ef3620
commit
c0a58fbb51
@ -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
|
||||
|
||||
Reference in New Issue
Block a user