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

Ambiguity warning printed twice ?

From
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Date
Jun 22, 2017, 12:46 UTC
Message-ID
<1498135581.2089.1.camel@gmail.com>
Happy day everyone,

I accidentally noticed a weird behaviour of 'git status'. In a repository I created a branch with the name 'HEAD' by chance. When I run 'git status' in the repository it prints a warning about an ambiguous reference about 'HEAD' which is expected but it prints it twice which seems suspicious.

    $ git branch
      HEAD
      master
    * test
    $ git status
    warning: refname 'HEAD' is ambiguous.
    warning: refname 'HEAD' is ambiguous.
    On branch test
    ....
Any reasons behind this behaviour or is this a bug?
-- 
Regards,
Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
Next: Jeff King
Message 1 of 3 in “Ambiguity warning printed twice ?”
  1. Kaartic SivaraamJun 22, 2017
  2. Jeff KingJun 22, 2017
  3. Kaartic SivaraamJun 23, 2017

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.