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

Re: Creation of a branch named that has a directory prefix equal to the name of another branch fail.

From
Taylor Blau <me@ttaylorr.com>
Date
Jul 24, 2020, 16:00 UTC
Message-ID
<20200724160045.GA10590@syl.lan>
In-Reply-To
<DM5PR1801MB20762477763E6298C7FE6315F0770@DM5PR1801MB2076.namprd18.prod.outlook.com>
Hi Tommaso,
On Fri, Jul 24, 2020 at 10:26:14AM +0000, Tommaso Ercole wrote:
> As per compiled bug report, creation of a branch that has a prefix that map to a folder, when that prefix is just an existing branch in the repo fails.
>
> I.E. 'a/b/c' when 'a/b' just exists.

This is a known limitation of loose references, since each reference is stored in a file in $GITDIR/refs.

Reftable support within Git will lift this limitation. In the meantime, if your references aren't updated you can store them as packed refs which don't have this limitation, but note that they will be expanded loose if you touch them again (i.e., this is a good solution for tags, but not development branches).

Hope that this helps.
> Best regards,
> Tommaso Ercole
> Head Programmer
> Content Delivery

Thanks, Taylor

Previous: Tommaso ErcoleNext: Jeff King
Message 2 of 8 in “Creation of a branch named that has a directory prefix equal to the name of another branch fail.”
  1. Tommaso ErcoleJul 24, 2020
  2. Taylor BlauJul 24, 2020
  3. Jeff KingJul 24, 2020
  4. Junio C HamanoJul 24, 2020
  5. Tommaso ErcoleJul 27, 2020
  6. Bryan TurnerJul 27, 2020
  7. Han-Wen NienhuysJul 27, 2020
  8. Junio C HamanoJul 24, 2020

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.