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):
except GitError, e:
local, _ = e.stdout.splitlines()
remote = None
assert local[:11] == 'refs/heads/'
return local[11:], remote
if local != 'HEAD':
assert local[:11] == 'refs/heads/'
local = local[11:]
return local, remote
@selfcached
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