diff --git a/library/source_control/git b/library/source_control/git index 7b6073a2ee..29dd8489f6 100644 --- a/library/source_control/git +++ b/library/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