Skip to content

Commit

Permalink
git-fetch.sh printed protocol fix
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tuncer Ayaz authored and Junio C Hamano committed Oct 25, 2006
1 parent a4e3bdd commit ddaf731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ fetch_main () {
# 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
Expand All @@ -310,7 +311,7 @@ fetch_main () {
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://*)
Expand Down

0 comments on commit ddaf731

Please sign in to comment.