Skip to content

Commit

Permalink
git: handle newlines in .git files
Browse files Browse the repository at this point in the history
Closes #213

Reported-by: Jérôme Carretero <cJ@zougloub.eu>
Signed-off-by: David Aguilar <davvid@gmail.com>
  • Loading branch information
davvid committed Dec 9, 2013
1 parent 55b8b37 commit 1d2d7e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cola/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def read_git_file(path):
if path is None:
return None
if is_git_file(path):
data = core.read(path)
data = core.read(path).strip()
if data.startswith('gitdir: '):
return data[len('gitdir: '):]
return None
Expand Down
1 change: 1 addition & 0 deletions share/doc/git-cola/thanks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Thanks
* Iulian Udrea
* Ivar Smolin
* Jakub Wilk
* Jérôme Carretero
* Johann Schmitz
* Jeff Dagenais
* Justin Lecher
Expand Down

0 comments on commit 1d2d7e1

Please sign in to comment.