[
https://issues.apache.org/jira/browse/SCM-628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17962330#comment-17962330
]
ASF GitHub Bot commented on SCM-628:
------------------------------------
jira-importer commented on issue #842:
URL: https://github.com/apache/maven-scm/issues/842#issuecomment-2964627089
**[Hubert
Sugeng](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=hubez)**
commented
`@michael-o`, I feel this issue matches your guidelines to not be closed. I
provided a very clean example, and I also provided a patch! All that is needed
is to patch and merge it.
I'm not sure how to make it simpler on the committers.
Thanks for your re-consideration.
Hubert
> scm:checkout parsing URL for clone does not match what is passed in with
> -DconnectionUrl
> ----------------------------------------------------------------------------------------
>
> Key: SCM-628
> URL: https://issues.apache.org/jira/browse/SCM-628
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-mercurial (hg)
> Affects Versions: 1.5
> Environment: centos5.4
> Reporter: Hubert Sugeng
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 1.11.1
>
> Attachments: SCM-627.patch
>
>
> Mercurial server's hostname name is "hg".
> URL to get to clone a repository is: http://hg/hg/maven
> The SCM plugin seems to treat this URL funny, such that it clones the wrong
> URL.
> Original ==> Turns into
> http://hg/hg/maven ==> http://hg//maven
> Don't even need a valid Mercurial server to reproduce.
> $ mvn scm:checkout -DconnectionUrl=scm:hg:http://hg/hg/maven
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building myplugin Maven Plugin 1.0.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] maven-scm-plugin:1.5:checkout (default-cli) @ myplugin
> [INFO] Removing /sandbox/target/checkout
> [INFO] Removing /sandbox/target/checkout
> [INFO] EXECUTING: /bin/sh -c cd /sandbox/target && hg clone -r tip
> http://hg//maven /sandbox/target/checkout
> [ERROR]
> EXECUTION FAILED
--
This message was sent by Atlassian Jira
(v8.20.10#820010)