mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #22301 from twangboy/git_state_fix
Fixed logic error
This commit is contained in:
commit
9ffdb51d18
@ -212,7 +212,7 @@ def latest(name,
|
||||
|
||||
# only do something, if the specified rev differs from the
|
||||
# current_rev and remote_rev
|
||||
if current_rev in [rev, remote_rev] or remote_rev.startswith(current_rev):
|
||||
if current_rev in [rev, remote_rev] or (remote_rev is not None and remote_rev.startswith(current_rev)):
|
||||
new_rev = current_rev
|
||||
else:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user