Skip to content

Commit 6a28f6d

Browse files
committed
If we have a cache-miss in repository loading, return a deep copy
1 parent 7d22407 commit 6a28f6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/gitblit/GitBlit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ public RepositoryModel getRepositoryModel(String repositoryName) {
16701670
return null;
16711671
}
16721672
addToCachedRepositoryList(model);
1673-
return model;
1673+
return DeepCopier.copy(model);
16741674
}
16751675

16761676
// cached model

0 commit comments

Comments
 (0)