Re: [BUG?] HEAD detached at HEAD
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 18, 2015, 17:23 UTC
- Message-ID
- <vpqeghviqu1.fsf@anie.imag.fr>
- In-Reply-To
- <CA+P7+xoeXiZd=WU460Xfjthe0U5BnAV69_KNKW39p10ZGLHx7g@mail.gmail.com>
Jacob Keller <jacob.keller@gmail.com> writes:
Show 8 quoted lines
> 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:
$ 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/