mirror of
https://github.com/MiSTer-devel/Distribution_MiSTer.git
synced 2026-05-24 03:03:20 +00:00
Changing zip branch handling
This commit is contained in:
committed by
GitHub
parent
d7b43fe234
commit
0fbc07cdba
5
.github/calculate_db.py
vendored
5
.github/calculate_db.py
vendored
@@ -460,8 +460,9 @@ def create_db(folder, options, tags):
|
||||
run_succesfully('git fetch origin main || true')
|
||||
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:zips')
|
||||
run_succesfully('git push origin :zips zips_backup')
|
||||
run_succesfully('git push origin new_zips:zips')
|
||||
run_succesfully('git push origin --delete zips_backup')
|
||||
else:
|
||||
print('Using old zip branch from origin')
|
||||
zip_sha = run_stdout('git rev-parse --verify origin/zip').strip()
|
||||
|
||||
Reference in New Issue
Block a user