Don't choke on spaces in filenames in run_checks.py

This commit is contained in:
Florian Bruhin 2014-06-19 13:51:08 +02:00
parent 3de113ee8c
commit 00fb7b8f68

View File

@ -149,7 +149,7 @@ def check_git():
gitst = subprocess.check_output(['git', 'status', '--porcelain'])
gitst = gitst.decode('UTF-8').strip()
for line in gitst.splitlines():
s, name = line.split()
s, name = line.split(maxsplit=1)
if s == '??':
untracked.append(name)
if untracked: