summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a4e3bdd)
raw | patch | inline | side by side (parent: a4e3bdd)
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | |
Wed, 25 Oct 2006 10:03:06 +0000 (12:03 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 25 Oct 2006 18:26:48 +0000 (11:26 -0700) |
We have supported https:// protocol for some time and in 1.4.3
added ftp:// protocol. The transfer were still reported to be
over http.
[jc: Tuncer used substring parameter substitution ${remote%%:*}
but I am deferring it to a later day. We should replace
colon-expr with substring substitution after everybody's shell
can grok it someday, but we are not in a hurry. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
added ftp:// protocol. The transfer were still reported to be
over http.
[jc: Tuncer used substring parameter substitution ${remote%%:*}
but I am deferring it to a later day. We should replace
colon-expr with substring substitution after everybody's shell
can grok it someday, but we are not in a hurry. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-fetch.sh | patch | blob | history |
diff --git a/git-fetch.sh b/git-fetch.sh
index 79222fbb1a4bf3205f3225feafc96aa43aace87c..a674c8c5744c5f8b3826336fc9db4e53fd0942b3 100755 (executable)
--- a/git-fetch.sh
+++ b/git-fetch.sh
# There are transports that can fetch only one head at a time...
case "$remote" in
http://* | https://* | ftp://*)
+ proto=`expr "$remote" : '\([^:]*\):'`
if [ -n "$GIT_SSL_NO_VERIFY" ]; then
curl_extra_args="-k"
fi
done
expr "z$head" : "z$_x40\$" >/dev/null ||
die "Failed to fetch $remote_name from $remote"
- echo >&2 Fetching "$remote_name from $remote" using http
+ echo >&2 "Fetching $remote_name from $remote using $proto"
git-http-fetch -v -a "$head" "$remote/" || exit
;;
rsync://*)