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

Re: Problem completing remotes when .git/remotes exits

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Sep 26, 2012, 01:26 UTC
Message-ID
<20120926012633.GE10144@goldbirke>
In-Reply-To
<20120926010938.GD10144@goldbirke>
On Wed, Sep 26, 2012 at 03:09:38AM +0200, SZEDER Gábor wrote:
Show 7 quoted lines
> On Wed, Sep 26, 2012 at 01:00:45AM +0200, SZEDER Gábor wrote:
> > But then it got me thinking...  Notice how much effort we spend just
> > to get the list of remotes?  We could just run 'git remote' directly
> > instead...
> 
> Actually, we can't, because 'git remote' doesn't seem to list remotes
> stored under .git/remotes.  Is that intentional?

Looks like a bug, as it seems to have been lost in translation in 211c8968 (Make git-remote a builtin, 2008-02-29).

list_remote() in git-remote.perl looks for remotes in config and in .git/remotes/, too. The builtin implementation uses remote.c:for_each_remote() from the start, which only looks at the config.

Previous: SZEDER Gábor
Message 6 of 6 in “Problem completing remotes when .git/remotes exits”
  1. Johannes SixtSep 19, 2012
  2. SZEDER GáborSep 25, 2012
  3. Junio C HamanoSep 25, 2012
  4. SZEDER GáborSep 26, 2012
  5. SZEDER GáborSep 26, 2012
  6. SZEDER GáborSep 26, 2012

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.