From: Junio C Hamano <gitster@pobox.com>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: Stefan Beller <sbeller@google.com>,
Michael J Gruber <git@drmicha.warpmail.net>,
Jacob Keller <jacob.keller@gmail.com>, git <git@vger.kernel.org>
Subject: Re: [BUG?] HEAD detached at HEAD
Date: Mon, 21 Sep 2015 10:20:13 -0700 [thread overview]
Message-ID: <xmqq8u7zbsfm.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <vpqlhc3h7e7.fsf@anie.imag.fr> (Matthieu Moy's message of "Fri, 18 Sep 2015 21:09:04 +0200")
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> I investigated a bit more. The root of the problem is "git checkout
> --detach" and the reflog. Here's a reproduction script:
> ...
> If one replaces "git checkout --detach" with "git checkout HEAD^0", then
> the output is the one I expected:
>
> HEAD detached at cb39b20
>
> The guilty line in the reflog is:
>
> checkout: moving from master to HEAD
Yeah, that sounds broken. --detach should write the same reflog entry
as "git checkout HEAD^0".
prev parent reply other threads:[~2015-09-21 17:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-18 16:59 [BUG?] HEAD detached at HEAD Matthieu Moy
2015-09-18 17:08 ` Jacob Keller
2015-09-18 17:23 ` Matthieu Moy
2015-09-18 17:32 ` Stefan Beller
2015-09-18 19:09 ` Matthieu Moy
2015-09-21 7:31 ` Michael J Gruber
2015-09-21 7:39 ` Michael J Gruber
2015-09-21 7:42 ` Matthieu Moy
2015-09-21 17:20 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqq8u7zbsfm.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox.com \
--cc=Matthieu.Moy@grenoble-inp.fr \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=jacob.keller@gmail.com \
--cc=sbeller@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.