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

Re: [PATCH] Fix the remote note the fetch-tool prints after storing a fetched reference

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jun 6, 2007, 08:42 UTC
Message-ID
<81b0412b0706060142h2df41f11pa0157a360831736@mail.gmail.com>
In-Reply-To
<7v3b157b4j.fsf@assigned-by-dhcp.cox.net>
On 6/6/07, Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> "Alex Riesen" <raa.lkml@gmail.com> writes:
>
> > Otherwise ".git" is removed from every remote name which has it:
> >
> >  $ git fetch -v
> >    * refs/heads/origin: same as branch 'master' of /home/user/linux
> >      commit: 5ecd310
> >  $ ls /home/user/linux
> >  ls: /home/user/linux: No such file or directory
> >  $ ls /home/user/linux.git
> >  HEAD  objects  packed-refs  ...
>
> I suspect the above misses the point.

Depends on the point. I mean to say: the path in the output of the command does not exist anywhere.

> The test "ls /home/user/linux" is not relevant.  Ability to say
> "git fetch /home/user/linux" is.
This is still ambiguous:
$ git fetch -v /home/user/a
* fetched /home/user/a
  commit: b85c140
$ git fetch -v /home/user/a.git
* fetched /home/user/a
  commit: b85c140

Which one was fetched when? /home/user/a or /home/user/a.git? No imagine you don't see the command (as if git fetch is called in some frontend). Would you be able to distinguish the sources?

Besides, I just noticed git-clone is broken WRT the .git as well: I can clone a "a.git" into "b" (and it ignores -l and -s!), but I can't fetch the "a" (aka "origin") being in "b". And of course, "origin" in "b" is setup as "/path/a", not "/path/a.git".

Previous: Junio C HamanoNext: J Junio C Hamano
Message 3 of 9 in “Fix the remote note the fetch-tool prints after storing a fetched reference”
  1. Fix the remote note the fetch-tool prints after storing a fetched referenceAlex Riesen, Jun 6, 2007
  2. Junio C HamanoJun 6, 2007
  3. Alex RiesenJun 6, 2007
  4. J Junio C HamanoJun 6, 2007
  5. Alex RiesenJun 6, 2007
  6. Junio C HamanoJun 6, 2007
  7. Fix the remote note the fetch-tool prints after storing a fetched referenceAlex Riesen, Jun 6, 2007
  8. Junio C HamanoJun 6, 2007
  9. Alex RiesenJun 6, 2007

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.