git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Fix git-pull output message

From
RWRobert Watson <robert.oo.watson@gmail.com>
Date
Sep 28, 2005, 10:02 UTC
Message-ID
<72499e3b05092803027175bab0@mail.gmail.com>
(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_"
Next: Junio C Hamano
Message 1 of 4 in “Fix git-pull output message”
  1. Fix git-pull output messageRobert Watson, Sep 28, 2005
  2. Junio C HamanoSep 28, 2005
  3. Linus TorvaldsSep 28, 2005
  4. Robert WatsonSep 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.