aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-03-22 17:40:55 +0100
committersonartech <sonartech@sonarsource.com>2022-03-25 20:02:53 +0000
commit511d8d1d0d741843d107f1175c79f962d4743ec1 (patch)
treeb611e1f4060b880efe7f80c6d9191f2ea4f0039c /sonar-scanner-engine
parent3e2705b20b0073754d5b589755bd921667853feb (diff)
downloadsonarqube-511d8d1d0d741843d107f1175c79f962d4743ec1.tar.gz
sonarqube-511d8d1d0d741843d107f1175c79f962d4743ec1.zip
NO-JIRA fixed one unit test in GitScmProviderTest that used a method unfriendly to Windows
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
index 1e13ca3e9cb..bb626c5f01f 100644
--- a/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
+++ b/sonar-scanner-engine/src/test/java/org/sonar/scm/git/GitScmProviderTest.java
@@ -23,6 +23,7 @@ import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
+import java.nio.file.LinkOption;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
@@ -279,7 +280,7 @@ public class GitScmProviderTest {
addSubmodule(gitForRepo2, "sub2", worktreeForRepo3.toUri().toString());
addSubmodule(git, "sub1", worktreeForRepo2.toUri().toString());
- File mainFolderWithAllSubmodules = temp.newFolder();
+ File mainFolderWithAllSubmodules = temp.newFolder().toPath().toRealPath(LinkOption.NOFOLLOW_LINKS).toFile();
Git.cloneRepository()
.setURI(worktree.toUri().toString())
.setDirectory(mainFolderWithAllSubmodules)