Jacob Keller <jacob.kel...@gmail.com> writes:

> On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy
> <matthieu....@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:

$ 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to