Merge pull request #38457 from bshelton229/git-latest-head-bug

Stops git.latest checking for local changes in a bare repo
This commit is contained in:
Erik Johnson 2016-12-30 08:28:46 -06:00 committed by GitHub
commit ed2ba4bd1b

View file

@ -879,7 +879,11 @@ def latest(name,
revs_match = _revs_equal(local_rev, remote_rev, remote_rev_type)
try:
# If not a bare repo, check `git diff HEAD` to determine if
# there are local changes.
local_changes = bool(
not bare
and
__salt__['git.diff'](target,
'HEAD',
user=user,