Git development
 help / color / mirror / Atom feed
* [PATCH] git-fetch.sh printed protocol fix
@ 2006-10-25 10:03 Tuncer Ayaz
  2006-10-25 18:52 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Tuncer Ayaz @ 2006-10-25 10:03 UTC (permalink / raw)
  To: git

As a feature I wished for (ftp:// support in git-fetch) was added in 1.4.3
I tested that feature and found a minor logging issue. The mini-patch
below fixes that.  AFAIK the pattern expansion feature I've used should
be available in any current /bin/sh. If not we will have to find another
way to print the protocol part of the used fetch URL.

--- git-core-1.4.3.2/git-fetch.sh	2006-10-24 07:29:47.000000000 +0200
+++ git-core-1.4.3.2.tma/git-fetch.sh	2006-10-25 11:44:34.000000000 +0200
@@ -310,7 +310,7 @@
 	  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 ${remote%%:*}
 	  git-http-fetch -v -a "$head" "$remote/" || exit
 	  ;;

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-25 18:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-25 10:03 [PATCH] git-fetch.sh printed protocol fix Tuncer Ayaz
2006-10-25 18:52 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox