File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,9 +131,9 @@ def register(self, cls: Matcher) -> None:
131
131
>>> GitURLWithPip(url="git+ssh://git@github.com/tony/AlgoXY.git")
132
132
GitURLWithPip(url=git+ssh://git@github.com/tony/AlgoXY.git,
133
133
scheme=git+ssh,
134
+ user=git,
134
135
hostname=github.com,
135
136
path=tony/AlgoXY,
136
- user=git,
137
137
suffix=.git,
138
138
matcher=pip-url)
139
139
""" # NOQA: E501
Original file line number Diff line number Diff line change @@ -230,9 +230,9 @@ class GitBaseURL(URLProtocol, SkipDefaultFieldsReprMixin):
230
230
231
231
>>> GitURL(url='git@github.com:vcs-python/libvcs.git')
232
232
GitURL(url=git@github.com:vcs-python/libvcs.git,
233
+ user=git,
233
234
hostname=github.com,
234
235
path=vcs-python/libvcs,
235
- user=git,
236
236
suffix=.git,
237
237
matcher=core-git-scp)
238
238
@@ -247,10 +247,10 @@ class GitBaseURL(URLProtocol, SkipDefaultFieldsReprMixin):
247
247
248
248
url : str
249
249
scheme : Optional [str ] = None
250
+ user : Optional [str ] = None
250
251
hostname : Optional [str ] = None
251
252
port : Optional [int ] = None
252
253
path : Optional [str ] = None
253
- user : Optional [str ] = None
254
254
255
255
# Decoration
256
256
suffix : Optional [str ] = None
@@ -302,9 +302,9 @@ def to_url(self) -> str:
302
302
303
303
>>> git_location
304
304
GitURL(url=git@github.com:vcs-python/libvcs.git,
305
+ user=git,
305
306
hostname=github.com,
306
307
path=vcs-python/libvcs,
307
- user=git,
308
308
suffix=.git,
309
309
matcher=core-git-scp)
310
310
You can’t perform that action at this time.
0 commit comments