Merge pull request #3507 from resmo/fix/git-porcelain-status
git: fix status to use porcelain, ignore user configuration
This commit is contained in:
commit
3cbca32e73
1 changed files with 1 additions and 1 deletions
|
@ -357,7 +357,7 @@ def has_local_mods(module, git_path, dest, bare):
|
|||
if bare:
|
||||
return False
|
||||
|
||||
cmd = "%s status -s" % (git_path)
|
||||
cmd = "%s status --porcelain" % (git_path)
|
||||
rc, stdout, stderr = module.run_command(cmd, cwd=dest)
|
||||
lines = stdout.splitlines()
|
||||
lines = filter(lambda c: not re.search('^\\?\\?.*$', c), lines)
|
||||
|
|
Loading…
Reference in a new issue