From fe5f206a0c06fb1ed3a554645765d562db68fd3e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 5 Apr 2023 17:07:36 +0200 Subject: [PATCH] autoupdate app sources: skip app for which new branch already exists --- autoupdate_app_sources/autoupdate_app_sources.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoupdate_app_sources/autoupdate_app_sources.py b/autoupdate_app_sources/autoupdate_app_sources.py index 03139d1..630e8ee 100644 --- a/autoupdate_app_sources/autoupdate_app_sources.py +++ b/autoupdate_app_sources/autoupdate_app_sources.py @@ -210,7 +210,8 @@ class AppAutoUpdater: 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) except: - pass + print("... Branch already exists, skipping") + return False manifest_new = self.manifest_raw for source, infos in todos.items():