Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6216759

Browse files
committed
Fix submodule check if status is clean
1 parent 83a6120 commit 6216759

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mypy/git.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ def get_submodules(dir: str):
3131
# status='-': not initialized
3232
# status='+': changed
3333
# status='u': merge conflicts
34+
# status=' ': up-to-date
3435
for line in output.splitlines():
36+
# Skip the status indicator, as it could be a space can confuse the split.
37+
line = line[1:]
3538
name = line.split(b" ")[1]
3639
yield name.decode(sys.getfilesystemencoding())
3740

0 commit comments

Comments
 (0)