diff --git a/git-clone-script b/git-clone-script
index a808c02f17160b6c72212ec02cff05a687f65d35..60dc2a9d8854fd08c708d4a75f1c887d1d724b9f 100755 (executable)
--- a/git-clone-script
+++ b/git-clone-script
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