Merge pull request #22301 from twangboy/git_state_fix

Fixed logic error
This commit is contained in:
Thomas S Hatch 2015-04-03 09:40:45 -06:00
commit 9ffdb51d18

View File

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