Skip to content

Commit

Permalink
Merge ae30e96 into 628090e
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarsj committed May 31, 2019
2 parents 628090e + ae30e96 commit 60eaf5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion repoman/git/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def commit(self, message, custom_parent=None,
allow_empty = True
modified = []
for s in status:
status, path = s.split()
status, path = s.strip().split(maxsplit=1)
if status == 'M':
modified.append(path)
self.add(modified)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_gitrepository.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_status():
git = GitCmd(self.main_repo)
status = {}
for f in git('status', porcelain=True, _iter=True):
s, path = f.split()
s, path = f.strip().split(maxsplit=1)
status[path] = s
return status

Expand Down

0 comments on commit 60eaf5f

Please sign in to comment.