michael-o commented on a change in pull request #66: [SCM-868] fix gitexe
cannot deduce relative path
URL: https://github.com/apache/maven-scm/pull/66#discussion_r188777779
##########
File path:
maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/test/java/org/apache/maven/scm/provider/git/gitexe/command/status/GitStatusConsumerTest.java
##########
@@ -215,19 +225,23 @@ public void
testConsumerModifiedFileInComplexDirectorySetup() throws IOException
public void testConsumerModifiedFileInComplexDirectoryWithSpaces()
throws IOException {
File dir = createTempDirectory();
- File subdir = new File( dir.getAbsolutePath() + "/sub Directory
déjà vu special/" );
+ URI relativeCWD = URI.create( "" );
+ File subdir = new File( dir, "sub Directory déjà vu special" );
subdir.mkdir();
FileUtils.write( new File( subdir, "project.xml" ), "data" );
- List<ScmFile> changedFiles = getChangedFiles( "M \"sub
Directory déjà vu special/project.xml\"", subdir, dir.toURI() );
+ List<ScmFile> changedFiles =
+ getChangedFiles( "M \"sub Directory déjà vu
special/project.xml\"", dir, relativeCWD );
assertNotNull( changedFiles );
assertEquals( 1, changedFiles.size() );
assertEquals( "sub Directory déjà vu special/project.xml",
changedFiles.get( 0 ).getPath() );
FileUtils.write( new File( subdir, "test file with spaces and a déjà
vu character.xml" ), "data" );
- changedFiles = getChangedFiles( "M \"sub Directory déjà vu
special/test file with spaces and a déjà vu character.xml\"", subdir,
dir.toURI() );
+ changedFiles =
Review comment:
check indentation
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services