Commit 10685cfc authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Handle filenames with newlines (it can happen!)

It's unlikely to every have come up, but I'm just being thorough.
parent a6ae7aa6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -37,8 +37,9 @@ def main():
	"""
	CLI entrypoint
	"""
	cmd = ['git', 'diff', '--no-commit-id', '--name-only']
	changed = set(check_output(cmd, text=True).splitlines())
	cmd = ['git', 'diff', '--no-commit-id', '--name-only', '-z']
	changed = set(check_output(cmd, text=True).split('\0'))
	changed.remove('')
	missing = []

	for path in sys.argv[1:]: