added a comment - - edited
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 this not existing 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,
fixed in r1245806.
we now move up to the parent directories if the local checkout fails - until we hit the root or the checkout succeeds.