1
0
mirror of https://github.com/openSUSE/osc.git synced 2026-03-05 00:41:47 +01:00

Break when a matching fork was found in 'git-obs staging group'

This commit is contained in:
2026-02-24 10:58:23 +01:00
parent 0be3154993
commit 46ad83cf97

View File

@@ -167,6 +167,7 @@ class StagingGroupCommand(osc.commandline_git.GitObsCommand):
for repo in forks:
if repo.owner.lower() == fork_owner.lower():
fork_repo = repo.repo
break
if not fork_repo:
raise gitea_api.GitObsRuntimeError(f"Cannot find a matching fork of {target_owner}/{target_repo} for user {fork_owner}")