Skip to content

Commit 9628ac6

Browse files
committed
cli[sync]: Add CouldNotGuessVCSFromURL
1 parent f1bcc6c commit 9628ac6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/vcspull/cli/sync.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from libvcs.sync.git import GitSync
1212
from libvcs.url import registry as url_tools
1313

14+
from .. import exc
1415
from ..config import filter_repos, find_config_files, load_configs
1516

1617
log = logging.getLogger(__name__)
@@ -124,6 +125,11 @@ def guess_vcs(url: str) -> t.Optional[VCSLiteral]:
124125
return t.cast(VCSLiteral, vcs_matches[0].vcs)
125126

126127

128+
class CouldNotGuessVCSFromURL(exc.VCSPullException):
129+
def __init__(self, repo_url: str, *args: object, **kwargs: object) -> None:
130+
return super().__init__(f"Could not automatically determine VCS for {repo_url}")
131+
132+
127133
def update_repo(
128134
repo_dict: t.Any,
129135
# repo_dict: Dict[str, Union[str, Dict[str, GitRemote], pathlib.Path]]

0 commit comments

Comments
 (0)