Skip to content

Commit ea44b3a

Browse files
author
Vladimir Kotal
committed
use Git paths when getting history for regular files
1 parent adb61a9 commit ea44b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,10 +541,10 @@ History getHistory(File file, String sinceRevision) throws HistoryException {
541541
Config config = repository.getConfig();
542542
config.setBoolean("diff", null, "renames", true);
543543
org.eclipse.jgit.diff.DiffConfig dc = config.get(org.eclipse.jgit.diff.DiffConfig.KEY);
544-
FollowFilter followFilter = FollowFilter.create(getRepoRelativePath(file), dc);
544+
FollowFilter followFilter = FollowFilter.create(getGitFilePath(getRepoRelativePath(file)), dc);
545545
walk.setTreeFilter(followFilter);
546546
} else {
547-
walk.setTreeFilter(PathFilter.create(getRepoRelativePath(file)));
547+
walk.setTreeFilter(PathFilter.create(getGitFilePath(getRepoRelativePath(file))));
548548
}
549549
}
550550

0 commit comments

Comments
 (0)