ansible/roles.py: fix pull call to handle up-to-date repo

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2024-06-24 08:48:25 +02:00
parent d3ac5a8766
commit b9940a9908
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 4 additions and 1 deletions

View File

@ -216,7 +216,10 @@ class Role:
def pull(self):
self._git('remote', 'update')
status = self._git('status', '--untracked-files=no')
if 'branch is behind' not in status:
if 'branch is up to date' in status:
return True
elif 'branch is behind' not in status:
return None
rval = self._git('pull')