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

Re: [PATCH] Don't create the $GIT_DIR/branches directory on init

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Oct 31, 2009, 18:02 UTC
Message-ID
<200910311902.48317.robin.rosenberg@dewire.com>
In-Reply-To
<200910311011.31189.trast@student.ethz.ch>
lördag 31 oktober 2009 10:11:29 skrev  Thomas Rast:
Show 16 quoted lines
> Robin Rosenberg wrote:
> > Git itself does not even look at this directory.
>
> This contradicts the git-fetch manpage though: from urls-remotes.txt,
> it includes
>
>   The name of one of the following can be used instead
>   of a URL as `<repository>` argument:
>
>   * a remote in the git configuration file: `$GIT_DIR/config`,
>   * a file in the `$GIT_DIR/remotes` directory, or
>   * a file in the `$GIT_DIR/branches` directory.
>
> (and a longer explanation of what they need to look like).
>
> So which one is wrong?

I, and a few other people, it seems. Seems the purpose of these files is a bit different. Git does look in these directories (both) when fetch is run. Seems remotes is not created by init though.

-- robin
Previous: Thomas RastNext: Shawn O. Pearce
Message 4 of 8 in “Don't create the $GIT_DIR/branches directory on init”
  1. Don't create the $GIT_DIR/branches directory on initRobin Rosenberg, Oct 30, 2009
  2. Junio C HamanoOct 30, 2009
  3. Thomas RastOct 31, 2009
  4. Robin RosenbergOct 31, 2009
  5. Shawn O. PearceOct 31, 2009
  6. Junio C HamanoOct 31, 2009
  7. Shawn O. PearceOct 31, 2009
  8. Junio C HamanoOct 31, 2009

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.