|
61 | 61 | """,
|
62 | 62 | re.VERBOSE,
|
63 | 63 | ),
|
| 64 | + is_explicit=True, |
64 | 65 | ),
|
65 | 66 | # ends with .git. Including ones starting with https://
|
66 | 67 | # e.g. https://github.com/vcs-python/libvcs.git
|
|
77 | 78 | re.VERBOSE,
|
78 | 79 | ),
|
79 | 80 | defaults={"username": "git"},
|
| 81 | + is_explicit=True, |
80 | 82 | ),
|
81 | 83 | # SCP-style URLs, e.g. git@
|
82 | 84 | ]
|
@@ -392,7 +394,7 @@ def is_valid(cls, url: str, is_explicit: bool | None = None) -> bool:
|
392 | 394 | >>> GitBaseURL.is_valid(
|
393 | 395 | ... url='git@github.com:vcs-python/libvcs.git', is_explicit=True
|
394 | 396 | ... )
|
395 | | - False |
| 397 | + True |
396 | 398 |
|
397 | 399 | In this case, check :meth:`GitPipURL.is_valid` or :meth:`GitURL.is_valid`'s
|
398 | 400 | examples.
|
@@ -764,7 +766,7 @@ def is_valid(cls, url: str, is_explicit: bool | None = None) -> bool:
|
764 | 766 | >>> GitURL.is_valid(
|
765 | 767 | ... url='git@github.com:vcs-python/libvcs.git', is_explicit=True
|
766 | 768 | ... )
|
767 | | - False |
| 769 | + True |
768 | 770 |
|
769 | 771 | You could create a GitHub rule that consider github.com hostnames to be
|
770 | 772 | exclusively git:
|
|
0 commit comments