[
https://jira.codehaus.org/browse/MRELEASE-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=297420#comment-297420
]
Florent PAILLARD commented on MRELEASE-740:
-------------------------------------------
Hello Mark,
Thanks a lot for fixing this! That's really precious!
I encounter 2 little problems under Windows.
First one is when the scmUrl is built. In CheckoutProjectFromScm class at line
88.
Under Windows, providing a url of the form
"scm:git:file://d:/users/blabla/etc/" is resolved by Git a
"file://d/users/blabla/etc". Note that the /d:/ became /d/. Then git fails
because it cannot checkout the directory.
The workaround is to provide a url of the form:
"scm:git:file:///d:/users/blabla/etc/" (with a triple slash "///" between file:
and d:)
I don't know if it also works under other systems.
Second problem is when you get to the parent folder to try to checkout. Also in
CheckoutProjectFromScm class at line 107. Instead of
int lastSlashPos = scmPath.lastIndexOf( "/" )
it should be
int lastSlashPos = scmPath.lastIndexOf( System.getProperty("file.separator") )
That would be really great if you could fix that before the next MRELEASE
version! Do I need to create a new issue for that?
Kind Regards,
> release:perform in subdirectories fails if localCheckout=true
> -------------------------------------------------------------
>
> Key: MRELEASE-740
> URL: https://jira.codehaus.org/browse/MRELEASE-740
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Reporter: Mark Struberg
> Assignee: Mark Struberg
> Fix For: 2.3
>
>
> This bug only concerns DSCMs like hg or GIT.
> Currently the release:perform fails when the project which should be released
> is _not_ in the outermost directory of the SCM repository and the
> localCheckout feature is enabled. In this case we just do a file:// checkout
> from the current directory. But if the project being released is not in the
> outermost directory, then the present working directory doesn't contain a GIT
> repo but some parent directory does.
> This is related to MRELEASE-501.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira