git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix git-pull output message
@ 2005-09-28 10:02 Robert Watson
  2005-09-28 11:00 ` Junio C Hamano
  2005-09-28 15:29 ` Linus Torvalds
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Watson @ 2005-09-28 10:02 UTC (permalink / raw)
  To: git, Junio C Hamano

(git)$ git-pull
Fetching refs/heads/master from
http://www.kernel.org/pub/scm/git/git.git using http
* committish: 3cc35e29ec252d0dca1139106fbaa70cb9ad6ef1
  branch 'master' of http://www.kernel.org/pub/scm/git/git
* refs/heads/origin: same as branch 'master' of
http://www.kernel.org/pub/scm/git/git
Already up-to-date. Yeeah!

Notice that the git.git directory is truncated.  It seems the
intension is to truncate at the .git
directory level.  The following patch fixes it.

diff --git a/git-fetch.sh b/git-fetch.sh
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -70,7 +70,7 @@ append_fetch_head () {
     *)
        note_="$remote_name of " ;;
     esac
-    remote_1_=$(expr "$remote_" : '\(.*\)\.git/*$') &&
+    remote_1_=$(expr "$remote_" : '\(.*/\)\.git/*$') &&
        remote_="$remote_1_"
     note_="$note_$remote_"

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

end of thread, other threads:[~2005-09-29  8:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 10:02 [PATCH] Fix git-pull output message Robert Watson
2005-09-28 11:00 ` Junio C Hamano
2005-09-28 15:29 ` Linus Torvalds
2005-09-29  8:48   ` Robert Watson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).