mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 12:05:52 +01:00
create a copy of the tag collection to reduce memory on caching
This commit is contained in:
@@ -212,9 +212,10 @@ public class GitChangesetConverter implements Closeable
|
||||
|
||||
Collection<String> tagCollection = tags.get(commit.getId());
|
||||
|
||||
if (tagCollection != null)
|
||||
if (Util.isNotEmpty(tagCollection))
|
||||
{
|
||||
changeset.getTags().addAll(tagCollection);
|
||||
// create a copy of the tag collection to reduce memory on caching
|
||||
changeset.getTags().addAll(Lists.newArrayList(tagCollection));
|
||||
}
|
||||
|
||||
changeset.setBranches(branches);
|
||||
|
||||
Reference in New Issue
Block a user