Skip to content
Snippets Groups Projects
Commit d4bf60aa authored by Frederik Zahle's avatar Frederik Zahle
Browse files

fix git pull error

parent 57d31b7e
No related branches found
No related tags found
1 merge request!21fix git pull error
Pipeline #61215 passed
...@@ -164,7 +164,10 @@ class CaseRunner(object): ...@@ -164,7 +164,10 @@ class CaseRunner(object):
os.system('git remote set-url origin %s' % url2) os.system('git remote set-url origin %s' % url2)
command = 'git pull origin %s' % self.make_test_data_branch command = 'git pull origin %s' % self.make_test_data_branch
print('checking remote branch %s for updates' % self.make_test_data_branch, flush=True) print('checking remote branch %s for updates' % self.make_test_data_branch, flush=True)
status = subprocess.check_output(command, shell=True) try:
status = subprocess.check_output(command, shell=True)
except:
print("no updates")
command = 'git push origin %s' % self.make_test_data_branch command = 'git push origin %s' % self.make_test_data_branch
print('pushing code with ellipsys_ci_bot user', flush=True) print('pushing code with ellipsys_ci_bot user', flush=True)
status = subprocess.check_output(command, shell=True) status = subprocess.check_output(command, shell=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment