Commit 490148fe authored by Jacob Welsh's avatar Jacob Welsh
Browse files

Fix getGitVersion showing a clean repo as modified

parent 4896de5e
......@@ -377,9 +377,9 @@ def getGitVersion(tagPrefix):
# any uncommitted modifications?
modified = False
status = check_output(['git', 'status', '-s'], universal_newlines=True).strip().split('\n')
status = check_output(['git', 'status', '--porcelain'], universal_newlines=True).strip().split('\n')
for line in status:
if line[:2] != '??':
if line != '' and line[:2] != '??':
modified = True
break
......@@ -558,5 +558,3 @@ class MergeTestCommand(Command):
def finalize_options(self):
pass
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment