Skip to content

Commit 72cbb86

Browse files
anotherdaveVladimir Kotal
authored andcommitted
Fixes #2231 History not loading Mercurial/Windows
1 parent ed5ac2b commit 72cbb86

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/org/opensolaris/opengrok/history/RepositoryInfo.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import java.io.File;
2727
import java.io.IOException;
2828
import java.io.Serializable;
29+
import java.nio.file.Paths;
2930
import java.text.SimpleDateFormat;
3031
import java.util.Objects;
3132
import java.util.logging.Level;
@@ -139,8 +140,9 @@ public void setDirectoryNameRelative(String dir) {
139140
* @return the name of the root directory
140141
*/
141142
public String getDirectoryName() {
142-
return RuntimeEnvironment.getInstance().getSourceRootPath() +
143-
directoryNameRelative;
143+
return Paths.get(RuntimeEnvironment.getInstance().getSourceRootPath(),
144+
directoryNameRelative).toString();
145+
144146
}
145147

146148
/**

0 commit comments

Comments
 (0)