1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

autoupdate app sources: skip app for which new branch already exists

This commit is contained in:
Alexandre Aubin 2023-04-05 17:07:36 +02:00
parent 09a243330b
commit 1c3fea6e50

View file

@ -210,7 +210,8 @@ class AppAutoUpdater:
commit_sha = self.repo.get_branch(self.base_branch).commit.sha commit_sha = self.repo.get_branch(self.base_branch).commit.sha
self.repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha) self.repo.create_git_ref(ref=f"refs/heads/{new_branch}", sha=commit_sha)
except: except:
pass print("... Branch already exists, skipping")
return False
manifest_new = self.manifest_raw manifest_new = self.manifest_raw
for source, infos in todos.items(): for source, infos in todos.items():