Commit 5f428041 by James Tanner

Fixes #6582 Re-add regex to ignore untracked files that were never tracked

parent a9000e7f
......@@ -223,6 +223,7 @@ def has_local_mods(module, git_path, dest, bare):
cmd = "%s status -s" % (git_path)
rc, stdout, stderr = module.run_command(cmd, cwd=dest)
lines = stdout.splitlines()
lines = filter(lambda c: not re.search('^\\?\\?.*$', c), lines)
return len(lines) > 0
......
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