jira-importer commented on issue #918:
URL: https://github.com/apache/maven-scm/issues/918#issuecomment-2964632989

   **[Michael 
Koch](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=tensberg)** 
commented
   
   I just found out that `URI.create` generally does not work as intended 
because it does not create a `file:` URL. Therefore
   
   `URI.create( stdout.getOutput().trim() ).relativize( 
fileSet.getBasedir().toURI() )`
   
   does not create a relative URL and the `git status` command fails. You can 
test this if in `GitStatusCommandTest.testResolvePath()` you change
   
   `URI path = repositoryRoot.toURI().relativize( workingDirectory.toURI() );`
   
   to
   
   `URI path = 
URI.create(repositoryRoot.getAbsolutePath()).relativize(workingDirectory.toURI());`.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to