From 5f428041db1085d877b701ba7e98f2bb08bb3ad5 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 --- library/source_control/git | 1 + 1 file changed, 1 insertion(+) 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