mirror of
https://github.com/status-im/infra-status.git
synced 2025-01-12 06:54:40 +00:00
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:
parent
9fce0e4211
commit
a7e9cb6e30
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user