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

reviewable/pr18780/r1
James Tanner 11 years ago
parent 2d4315020d
commit 69d40b861f

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

Loading…
Cancel
Save