From 69d40b861f427b8efb37600396a2e92644d26157 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Wed, 19 Mar 2014 15:42:40 -0400 Subject: [PATCH] Fixes #6582 Re-add regex to ignore untracked files that were never tracked --- source_control/git | 1 + 1 file changed, 1 insertion(+) 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