1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-10-25 01:32:16 +02:00

Move code from 'git-obs meta pull' command to GitStore.pull()

This commit is contained in:
2025-10-09 13:26:26 +02:00
parent a5afc88561
commit 87de410542
3 changed files with 65 additions and 52 deletions

View File

@@ -8,6 +8,8 @@ from typing import List
from typing import Optional
from typing import Tuple
from . import exceptions
class SshParseResult(urllib.parse.ParseResult):
"""
@@ -262,6 +264,8 @@ class Git:
def get_owner_repo(self, remote: Optional[str] = None) -> Tuple[str, str]:
remote_url = self.get_remote_url(name=remote)
if not remote_url:
raise exceptions.GitObsRuntimeError("Couldn't determine owner and repo due to a missing remote")
return self.get_owner_repo_from_url(remote_url)
@staticmethod