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

Re: BUG or FEATURE? Use of '/' in branch names

From
KDKeith Derrick <keith.derrick@lge.com>
Date
May 2, 2014, 22:36 UTC
Message-ID
<53641E0B.5000706@lge.com>
In-Reply-To
<20140502221617.GO9218@google.com>

Yes, I've since found some discussion on this, and had already changed to use '-' to append the classifier.

But the other problem is that I can't easily find this restriction documented anywhere - which means it comes as a suprise to people.

As it stands, the documentation implies that what I tried should work. In which case, how it's been *implemented* seems to be breaking the promise of the functional specification (if you view the documentation as such).

Keith
On 05/02/2014 03:16 PM, Jonathan Nieder wrote:
Show 24 quoted lines
> Hi Keith,
>
> Keith Derrick wrote:
>
>>      $ git checkout -b hotfix
>>      Switched to a new branch 'hotfix'
>>      $ git checkout -b hotfix/b2
>>      error: unable to resolve reference refs/heads/hotfix/b2: Not a directory
>>      fatal: Failed to lock ref for update: Not a directory
>>      $
> That's an ugly message.  I think we can do better. (hint hint)
>
> Longer term, I think people would like to make it possible for a
> 'hotfix' and 'hotfix/b2' branch to coexist, but that will take some
> work, and until then, git tries to be careful about enforcing the
> constraint that they cannot coexist.
>
> Fixing it would be complicated by the need to avoid breaking people
> with older versions of git when they fetch from you (what happens to
> the origin/hotfix and origin/hotfix/b2 remote-tracking refs on the
> client side?).
>
> Thanks and hope that helps,
> Jonathan
Previous: Jonathan NiederNext: Jonathan Nieder
Message 5 of 8 in “BUG or FEATURE? Use of '/' in branch names”
  1. Keith DerrickMay 2, 2014
  2. Felipe ContrerasMay 2, 2014
  3. Junio C HamanoMay 2, 2014
  4. Jonathan NiederMay 2, 2014
  5. Keith DerrickMay 2, 2014
  6. Jonathan NiederMay 2, 2014
  7. Dennis KaarsemakerMay 3, 2014
  8. Michael HaggertyMay 4, 2014

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.