diff --git a/source_control/git b/source_control/git index 7b6073a2ee4..29dd8489f68 100644 --- a/source_control/git +++ b/source_control/git @@ -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