Skip to content

Commit 95e78c4

Browse files
author
Vladimir Kotal
committed
convert relative directory path to native as well
1 parent 7dee899 commit 95e78c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

opengrok-indexer/src/main/java/org/opengrok/indexer/history/GitRepository.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ History getHistory(File file, String sinceRevision) throws HistoryException {
569569
treeWalk.setRecursive(true);
570570

571571
while (treeWalk.next()) {
572-
files.add(getDirectoryNameRelative() + File.separator +
572+
files.add(getNativePath(getDirectoryNameRelative()) + File.separator +
573573
getNativePath(treeWalk.getPathString()));
574574
}
575575
}
@@ -619,7 +619,8 @@ private void getFiles(org.eclipse.jgit.lib.Repository repository,
619619

620620
for (DiffEntry diff : diffs) {
621621
if (diff.getChangeType() != DiffEntry.ChangeType.DELETE) {
622-
files.add(getDirectoryNameRelative() + File.separator + getNativePath(diff.getNewPath()));
622+
files.add(getNativePath(getDirectoryNameRelative()) + File.separator +
623+
getNativePath(diff.getNewPath()));
623624
}
624625
if (diff.getChangeType() == DiffEntry.ChangeType.RENAME && isHandleRenamedFiles()) {
625626
renamedFiles.add(getNativePath(diff.getNewPath()));

0 commit comments

Comments
 (0)