Skip to content

Commit

Permalink
ansible/roles.py: fix checking git ancestry
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed Jun 13, 2024
1 parent 750e12d commit c17561e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ansible/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ def is_detached(self):
def is_ancestor(self):
if self.required is None or self.required == self.current_commit:
return False
return self._git_fail_is_false(
self.required, '--is-ancestor', self.current_commit
return not self._git_fail_is_false(
'merge-base', self.required, '--is-ancestor', self.current_commit
)

@property
Expand Down

0 comments on commit c17561e

Please sign in to comment.