Commit 59fc3be3 authored by Julien Muchembled's avatar Julien Muchembled

ERP5VCS: fix error with recent versions of Git when there's no upstream...

ERP5VCS: fix error with recent versions of Git when there's no upstream configured for current branch
parent 716080f3
......@@ -150,7 +150,7 @@ class Git(WorkingCopy):
'HEAD', '@{u}').splitlines()
remote = remote[:13] == 'refs/remotes/' and remote[13:] or None
except GitError, e:
local, _ = e.stdout.splitlines()
local = e.stdout.splitlines()[0]
remote = None
if local != 'HEAD':
assert local[:11] == 'refs/heads/'
......
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