Skip to content

Commit 0b102b5

Browse files
Vladimir Kotalahornace
authored andcommitted
move tag name assignment as well
1 parent 71c76c6 commit 0b102b5

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
@@ -631,9 +631,9 @@ private void rebuildTagList(File directory) {
631631
List<Ref> refList = git.tagList().call(); // refs sorted according to tag names
632632
Map<RevCommit, String> commit2Tags = new HashMap<>();
633633
for (Ref ref : refList) {
634-
String tagName = ref.getName().replace("refs/tags/", "");
635634
try {
636635
RevCommit commit = getCommit(repository, ref);
636+
String tagName = ref.getName().replace("refs/tags/", "");
637637
commit2Tags.merge(commit, tagName, (oldValue, newValue) -> oldValue + TAGS_SEPARATOR + newValue);
638638
} catch (IOException e) {
639639
LOGGER.log(Level.FINEST,

0 commit comments

Comments
 (0)