Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-21 Thread Jakub Narębski
W dniu 21.09.2016 o 18:37, Junio C Hamano pisze: > Jakub Narębski writes: >>> Have you tried "git symbolic-ref HEAD"? >>> >>> $ git symbolic-ref HEAD >>> refs/heads/master >>> >>> If you don't want the fully-qualified ref, you can add --short: >>> >>> $ git symbolic-ref --short HEAD >>> master >>

Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-21 Thread Junio C Hamano
Jakub Narębski writes: >> Have you tried "git symbolic-ref HEAD"? >> >> $ git symbolic-ref HEAD >> refs/heads/master >> >> If you don't want the fully-qualified ref, you can add --short: >> >> $ git symbolic-ref --short HEAD >> master > > This does not work for detached HEAD, but perhaps you d

Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-21 Thread Steffen Nurpmeso
Hello. Jakub Narębski wrote: |W dniu 20.09.2016 o 20:54, Bryan Turner pisze: |> On Tue, Sep 20, 2016 at 9:23 AM, Steffen Nurpmeso \ |> wrote: |>> Hello again, |>> |>> yah, sorry, i'm back again.. |>> I try to find a way to find the name of the current branch in an |>> automated way, beca

Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-21 Thread Jakub Narębski
W dniu 20.09.2016 o 20:54, Bryan Turner pisze: > On Tue, Sep 20, 2016 at 9:23 AM, Steffen Nurpmeso wrote: >> Hello again, >> >> yah, sorry, i'm back again.. >> I try to find a way to find the name of the current branch in an >> automated way, because i need to ensure that a commit happens on >> it

Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-20 Thread Steffen Nurpmeso
Hey. Bryan Turner wrote: |On Tue, Sep 20, 2016 at 9:23 AM, Steffen Nurpmeso \ |wrote: |> yah, sorry, i'm back again.. |> I try to find a way to find the name of the current branch in an |> automated way, because i need to ensure that a commit happens on |> it and no other branch. Now the

Re: v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-20 Thread Bryan Turner
On Tue, Sep 20, 2016 at 9:23 AM, Steffen Nurpmeso wrote: > Hello again, > > yah, sorry, i'm back again.. > I try to find a way to find the name of the current branch in an > automated way, because i need to ensure that a commit happens on > it and no other branch. Now the problem arises that the

v2.9.3 and v2.10.0: `name-ref' HEAD gives wrong branch name

2016-09-20 Thread Steffen Nurpmeso
Hello again, yah, sorry, i'm back again.. I try to find a way to find the name of the current branch in an automated way, because i need to ensure that a commit happens on it and no other branch. Now the problem arises that the commit ref at the time of that commit maybe shared in between several