Merge pull request #3507 from resmo/fix/git-porcelain-status

git: fix status to use porcelain, ignore user configuration
This commit is contained in:
Toshio Kuratomi 2016-04-21 08:51:37 -07:00
commit 3cbca32e73

View file

@ -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)