Skip to content

Commit af5f375

Browse files
committed
Add URL handling module to make SSH-style URLs explicit
1 parent 29414cf commit af5f375

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/vcspull/url.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""URL handling for vcspull."""
2+
3+
from __future__ import annotations
4+
5+
from libvcs.url.git import DEFAULT_RULES
6+
7+
# Find the core-git-scp rule and modify it to be explicit
8+
for rule in DEFAULT_RULES:
9+
if rule.label == "core-git-scp":
10+
# Make the rule explicit so it can be detected with is_explicit=True
11+
rule.is_explicit = True
12+
# Increase the weight to ensure it takes precedence
13+
rule.weight = 100

0 commit comments

Comments
 (0)