Re: [BUG?] HEAD detached at HEAD

2015-09-21 Thread Michael J Gruber
... in addition to my previous reply, looking at more context: >> --- a/wt-status.c >> +++ b/wt-status.c >> @@ -1319,6 +1319,13 @@ static int grab_1st_switch(unsigned char *osha1, >> unsigned char *nsha1, >> hashcpy(cb->nsha1, nsha1); >> for (end = target; *end && *end != '\n';

Re: [BUG?] HEAD detached at HEAD

2015-09-21 Thread Matthieu Moy
Michael J Gruber writes: > ... in addition to my previous reply, looking at more context: > >>> --- a/wt-status.c >>> +++ b/wt-status.c >>> @@ -1319,6 +1319,13 @@ static int grab_1st_switch(unsigned char *osha1, >>> unsigned char *nsha1, >>> hashcpy(cb->nsha1,

Re: [BUG?] HEAD detached at HEAD

2015-09-21 Thread Michael J Gruber
Matthieu Moy venit, vidit, dixit 18.09.2015 21:09: > Stefan Beller writes: > >> On Fri, Sep 18, 2015 at 10:23 AM, Matthieu Moy >> wrote: >>> Jacob Keller writes: >>> On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy

Re: [BUG?] HEAD detached at HEAD

2015-09-21 Thread Junio C Hamano
Matthieu Moy 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:

Re: [BUG?] HEAD detached at HEAD

2015-09-18 Thread Matthieu Moy
Stefan Beller writes: > On Fri, Sep 18, 2015 at 10:23 AM, Matthieu Moy > wrote: >> Jacob Keller writes: >> >>> On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy >>> wrote: I'm getting it

[BUG?] HEAD detached at HEAD

2015-09-18 Thread Matthieu Moy
Hi, I did a "git checkout --detached", and now I get: $ git status HEAD detached at HEAD nothing to commit, working directory clean $ git branch * (HEAD detached at HEAD) master The "HEAD detached at HEAD" is not very helpful. I thought there was an abbreved sha1 here before, but

Re: [BUG?] HEAD detached at HEAD

2015-09-18 Thread Jacob Keller
On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy 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? Regards, Jake -- To unsubscribe

Re: [BUG?] HEAD detached at HEAD

2015-09-18 Thread Matthieu Moy
Jacob Keller writes: > On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy > 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

Re: [BUG?] HEAD detached at HEAD

2015-09-18 Thread Stefan Beller
On Fri, Sep 18, 2015 at 10:23 AM, Matthieu Moy wrote: > Jacob Keller writes: > >> On Fri, Sep 18, 2015 at 9:59 AM, Matthieu Moy >> wrote: >>> I'm getting it even if there's a tag and/or a branch pointing to the