From 00fb7b8f684044aabb3a54936503b023712b2694 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 19 Jun 2014 13:51:08 +0200 Subject: [PATCH] Don't choke on spaces in filenames in run_checks.py --- scripts/run_checks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run_checks.py b/scripts/run_checks.py index b11a83e6a..096bf54a5 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -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: