1
0
Fork 0

fixed bug in git checkout script

This commit is contained in:
Christian Kühnel 2019-10-31 11:33:23 +01:00
parent 76c1f18c4f
commit b99d01165e

View file

@ -42,7 +42,7 @@ def _git_checkout(git_hash:str):
subprocess.check_call('git reset --hard {}'.format(git_hash), shell=True) subprocess.check_call('git reset --hard {}'.format(git_hash), shell=True)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
print('ERROR: checkout failed, using master instead.') print('ERROR: checkout failed, using master instead.')
subprocess.check_call('git checkout master') subprocess.check_call('git checkout master', shell=True)
def _apply_patch(diff_id: str, conduit_token: str, host: str): def _apply_patch(diff_id: str, conduit_token: str, host: str):