summaryrefslogtreecommitdiff
path: root/source_control
diff options
context:
space:
mode:
authorToshio Kuratomi <a.badger@gmail.com>2016-04-21 08:51:37 -0700
committerToshio Kuratomi <a.badger@gmail.com>2016-04-21 08:51:37 -0700
commit3cbca32e73dde9defacbe7fead96d37b7b78cd27 (patch)
tree91f412511a985bdc684be73666b06f5e7eaee978 /source_control
parent0300b2add162e5e285a533554f9893c4c5017bac (diff)
parent1f92e77650d92dd4ff04563bc42a87357e9fd5f7 (diff)
downloadansible-modules-core-3cbca32e73dde9defacbe7fead96d37b7b78cd27.tar.gz
Merge pull request #3507 from resmo/fix/git-porcelain-status
git: fix status to use porcelain, ignore user configuration
Diffstat (limited to 'source_control')
-rw-r--r--source_control/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/source_control/git.py b/source_control/git.py
index 4b36c358..ea310254 100644
--- a/source_control/git.py
+++ b/source_control/git.py
@@ -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)