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

Re: [BUG?] HEAD detached at HEAD

From
Stefan Beller <sbeller@google.com>
Date
Sep 18, 2015, 17:32 UTC
Message-ID
<CAGZ79kZxAwMvv6UoZLBd2wTOdj1DFWKQqSPBYL449KSokA8DQQ@mail.gmail.com>
In-Reply-To
<vpqeghviqu1.fsf@anie.imag.fr>

On Fri, Sep 18, 2015 at 10:23 AM, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote:

Show 12 quoted lines
> Jacob Keller <jacob.keller@gmail.com> writes:
>
>> On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy
>> <Matthieu.Moy@grenoble-inp.fr> wrote:
>>> I'm getting it even if there's a tag and/or a branch pointing to the
>>> same commit.
>>>
>>> Any idea what's going on?
>>
>> Any chance you accidentally made a branch or tag named HEAD?
>
> Nice try ;-), but no:

I was playing around with origin/master and origin/pu and I cannot reproduce this bug.

However maybe Michael as the author of 4b063186 (2015-03-03 branch: name detached HEAD analogous to status) can help here ?

Show 19 quoted lines
>
> $ git status
> HEAD detached at HEAD
> nothing to commit, working directory clean
>
> $ git for-each-ref
> 16aa1796fb487fc7178ceef0525fed80284a4c52 commit refs/heads/master
> 16aa1796fb487fc7178ceef0525fed80284a4c52 commit refs/tags/foo
>
> $ git rev-parse HEAD
> 16aa1796fb487fc7178ceef0525fed80284a4c52
>
> --
> Matthieu Moy
> http://www-verimag.imag.fr/~moy/
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous: Matthieu MoyNext: Matthieu Moy
Message 4 of 9 in “[BUG?] HEAD detached at HEAD”
  1. Matthieu MoySep 18, 2015
  2. Jacob KellerSep 18, 2015
  3. Matthieu MoySep 18, 2015
  4. Stefan BellerSep 18, 2015
  5. Matthieu MoySep 18, 2015
  6. Michael J GruberSep 21, 2015
  7. Michael J GruberSep 21, 2015
  8. Matthieu MoySep 21, 2015
  9. Junio C HamanoSep 21, 2015

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.