IndexWriter writer = getIndexWriter(repositoryName);\r
for (PathChangeModel path : changedPaths) {\r
// delete the indexed blob\r
- deleteBlob(repositoryName, branch, path.path);\r
+ deleteBlob(repositoryName, branch, path.name);\r
\r
// re-index the blob\r
if (!ChangeType.DELETE.equals(path.changeType)) {\r
list.add(new PathChangeModel(diff.getOldPath(), diff.getOldPath(), 0, diff\r
.getNewMode().getBits(), commit.getId().getName(), diff\r
.getChangeType()));\r
+ } else if (diff.getChangeType().equals(ChangeType.RENAME)) {\r
+ list.add(new PathChangeModel(diff.getOldPath(), diff.getNewPath(), 0, diff\r
+ .getNewMode().getBits(), commit.getId().getName(), diff\r
+ .getChangeType()));\r
} else {\r
list.add(new PathChangeModel(diff.getNewPath(), diff.getNewPath(), 0, diff\r
.getNewMode().getBits(), commit.getId().getName(), diff\r