mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
debugssl: allow a URL to be specified without a local repository
This was the original intent, but I bungled the logic. Otherwise if there is a certificate chain issue, the repository can't be cloned in order for there to be a repo object. I think I missed this case because I was inside of a Mercurial clone as I was originally developing and testing this.
This commit is contained in:
parent
45a4782018
commit
19d34e4d32
@ -2078,10 +2078,10 @@ def debugssl(ui, repo, source=None, **opts):
|
|||||||
'Windows'))
|
'Windows'))
|
||||||
|
|
||||||
if not source:
|
if not source:
|
||||||
|
if not repo:
|
||||||
|
raise error.Abort(_("there is no Mercurial repository here, and no "
|
||||||
|
"server specified"))
|
||||||
source = "default"
|
source = "default"
|
||||||
elif not repo:
|
|
||||||
raise error.Abort(_("there is no Mercurial repository here, and no "
|
|
||||||
"server specified"))
|
|
||||||
|
|
||||||
source, branches = hg.parseurl(ui.expandpath(source))
|
source, branches = hg.parseurl(ui.expandpath(source))
|
||||||
url = util.url(source)
|
url = util.url(source)
|
||||||
|
Loading…
Reference in New Issue
Block a user