X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-clone.sh;h=cf410faaa38af6858dbe11ce7516bcd90c2882e3;hb=b992933853ccffac85f7e40310167ef7b8f0432e;hp=47f3ec9761ba3e681e3035e6ae1c7449a6177a5e;hpb=36b5b3c65948694d9a92de5a17f2b97c3cd84879;p=git.git diff --git a/git-clone.sh b/git-clone.sh index 47f3ec97..cf410faa 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -153,7 +153,7 @@ yes,yes) fi && rm -f "$GIT_DIR/objects/sample" && cd "$repo" && - find objects -depth -print | cpio -puamd$l "$GIT_DIR/" || exit 1 + find objects -depth -print | cpio -pumd$l "$GIT_DIR/" || exit 1 ;; yes) mkdir -p "$GIT_DIR/objects/info" @@ -206,7 +206,13 @@ yes,yes) fi ;; http://*) - clone_dumb_http "$repo" "$D" + if test -z "@@NO_CURL@@" + then + clone_dumb_http "$repo" "$D" + else + echo >&2 "http transport not supported, rebuild Git with curl support" + exit 1 + fi ;; *) cd "$D" && case "$upload_pack" in