mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fixes #6582 Re-add regex to ignore untracked files that were never tracked
This commit is contained in:
parent
a9000e7f3a
commit
5f428041db
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue