Skip to content

Commit

Permalink
webrev: follow files for commits.json
Browse files Browse the repository at this point in the history
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Aug 25, 2020
1 parent 05d9d69 commit 5459a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webrev/src/main/java/org/openjdk/skara/webrev/Webrev.java
Expand Up @@ -278,7 +278,7 @@ private void generateJSON(Diff diff, Hash tailEnd, Hash head) throws IOException
file.put("patch", sb.toString());
}
files.add(file);
var commits = repository.commitMetadata(tailEnd, head, List.of(filename));
var commits = repository.follow(filename, tailEnd, head);
for (var commit : commits) {
if (!pathsPerCommit.containsKey(commit.hash())) {
pathsPerCommit.put(commit.hash(), new ArrayList<Path>());
Expand Down

1 comment on commit 5459a0b

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 5459a0b Aug 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.