Skip to content

Commit 1622327

Browse files
author
Vladimir Kotal
committed
fix
1 parent f5d1dbd commit 1622327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ private org.eclipse.jgit.lib.Repository getJGitRepository(String directory) thro
708708
parentAbsPath = gitDirValue.substring(0, dotGitIndex - 1);
709709
} else {
710710
File parent = new File(directory, gitDirValue.substring(0, dotGitIndex + Constants.DOT_GIT.length()));
711-
parentAbsPath = parent.getAbsolutePath();
711+
parentAbsPath = parent.getCanonicalPath();
712712
int indexDotGitParent = parentAbsPath.indexOf(File.separator + Constants.DOT_GIT);
713713
if (indexDotGitParent == -1) {
714714
return null;

0 commit comments

Comments
 (0)