Commit 5272cf47 authored by Julien Muchembled's avatar Julien Muchembled

Git: 'rev-parse --symbolic-full-name HEAD' returns HEAD in "detached HEAD" state

parent 24bf5b00
...@@ -152,8 +152,10 @@ class Git(WorkingCopy): ...@@ -152,8 +152,10 @@ class Git(WorkingCopy):
except GitError, e: except GitError, e:
local, _ = e.stdout.splitlines() local, _ = e.stdout.splitlines()
remote = None remote = None
if local != 'HEAD':
assert local[:11] == 'refs/heads/' assert local[:11] == 'refs/heads/'
return local[11:], remote local = local[11:]
return local, remote
@selfcached @selfcached
def getAheadCount(self): def getAheadCount(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment