Commit 180f6542 by Pierre LeMoine Committed by Matthias Putz

Fix: handle crlf in GetHead correctly

Using strip() instead of manual last-character-removal.
parent 68cf1e62
......@@ -2553,8 +2553,8 @@ class Project(object):
except AttributeError:
pass
if line.startswith('ref: '):
return line[5:-1]
return line[:-1]
return line[5:].strip()
return line.strip()
def SetHead(self, ref, message=None):
cmdv = []
......
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