diff options
author | Toshio Kuratomi <a.badger@gmail.com> | 2016-04-21 08:51:37 -0700 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2016-04-21 08:51:37 -0700 |
commit | 3cbca32e73dde9defacbe7fead96d37b7b78cd27 (patch) | |
tree | 91f412511a985bdc684be73666b06f5e7eaee978 /source_control | |
parent | 0300b2add162e5e285a533554f9893c4c5017bac (diff) | |
parent | 1f92e77650d92dd4ff04563bc42a87357e9fd5f7 (diff) | |
download | ansible-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.py | 2 |
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) |