summaryrefslogtreecommitdiff
path: root/git-clone-script
diff options
context:
space:
mode:
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 a808c02f17..60dc2a9d88 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