From 46ad83cf97cba724686308e7feef656c5427a975 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 24 Feb 2026 10:58:23 +0100 Subject: [PATCH] Break when a matching fork was found in 'git-obs staging group' --- osc/commands_git/staging_group.py | 1 + 1 file changed, 1 insertion(+) diff --git a/osc/commands_git/staging_group.py b/osc/commands_git/staging_group.py index 2da5d877..94719bf5 100644 --- a/osc/commands_git/staging_group.py +++ b/osc/commands_git/staging_group.py @@ -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}")