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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user