summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 504fe71)
raw | patch | inline | side by side (parent: 504fe71)
author | Fernando J. Pereda <ferdy@gentoo.org> | |
Wed, 15 Feb 2006 11:37:30 +0000 (12:37 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 16 Feb 2006 03:14:01 +0000 (19:14 -0800) |
If Git is compiled with NO_CURL=YesPlease and one tries to
clone a http repository, git-clone tries to call the curl
binary. This trivial patch prints an error instead in such
situation.
Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
clone a http repository, git-clone tries to call the curl
binary. This trivial patch prints an error instead in such
situation.
Signed-off-by: Fernando J. Pereda <ferdy@gentoo.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Makefile | patch | blob | history | |
git-clone.sh | patch | blob | history |
diff --git a/Makefile b/Makefile
index d40aa6a7d8cef4dd36a16e88071faf37c16fb731..648469e625bebeea355ff8599499cdb16da99a2f 100644 (file)
--- a/Makefile
+++ b/Makefile
rm -f $@
sed -e '1s|#!.*/sh|#!$(call shq,$(SHELL_PATH))|' \
-e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
+ -e 's/@@NO_CURL@@/$(NO_CURL)/g' \
$@.sh >$@
chmod +x $@
diff --git a/git-clone.sh b/git-clone.sh
index 47f3ec9761ba3e681e3035e6ae1c7449a6177a5e..e192b08c0dc3ab410e371fe07af96b9b5b59f22a 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
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