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

Re: Branch names with slashes

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Dec 14, 2011, 12:52 UTC
Message-ID
<4EE89BF8.6090700@alum.mit.edu>
In-Reply-To
<CAGcUY13TOodu1BO3DCoNnVvNZ9QkWAbD-RmyqQX6P1q6tcO+yg@mail.gmail.com>
On 12/14/2011 11:17 AM, Leonardo Kim wrote:
Show 9 quoted lines
> Branch names can contain slashes, so we can use 'development/foo' as a
> branch name. If I choose 'development' as a branch name, it doesn't
> work. There is a directory named development at '.git/refs/heads'
> directory. So we cannot create a file named development for
> 'refs/heads/development'.
> 
> An error message may occurs like below. Unfortunately, It is not of help to me.
> 'error: 'refs/heads/development/foo' exists; cannot create
> 'refs/heads/development'.

Assuming that the wording of the error message is not considered part of the external API, it is trivial to change it. What do you suggest?

Michael
-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/
Previous: Leonardo KimNext: Neal Kreitzinger
Message 2 of 6 in “Branch names with slashes”
  1. Leonardo KimDec 14, 2011
  2. Michael HaggertyDec 14, 2011
  3. Neal KreitzingerDec 15, 2011
  4. Michael HaggertyDec 15, 2011
  5. Junio C HamanoDec 16, 2011
  6. Johannes SixtDec 16, 2011

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.