Fixing zips branch

This commit is contained in:
José Manuel Barroso Galindo
2022-05-13 00:26:02 +02:00
committed by GitHub
parent 3f079c0ec8
commit 50f33dcea6

View File

@@ -461,9 +461,7 @@ def create_db(folder, options, tags):
if not run_conditional('git diff --quiet main origin/zips'):
print('zip branch has changes')
run_succesfully('git update-ref -d refs/remotes/origin/zips')
run_succesfully('git push --force origin new_zips:zips2')
print('forcing error')
raise Error('boom')
run_succesfully('git push --force origin new_zips:zips')
else:
print('Using old zip branch from origin')
zip_sha = run_stdout('git rev-parse --verify origin/zip').strip()