From 6a28f6dd38cf118308089217cae13674ce699f65 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Fri, 16 Aug 2013 09:17:23 -0400 Subject: [PATCH] If we have a cache-miss in repository loading, return a deep copy --- src/main/java/com/gitblit/GitBlit.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java index e47c4c6..688a19f 100644 --- a/src/main/java/com/gitblit/GitBlit.java +++ b/src/main/java/com/gitblit/GitBlit.java @@ -1670,7 +1670,7 @@ return null; } addToCachedRepositoryList(model); - return model; + return DeepCopier.copy(model); } // cached model -- Gitblit v1.9.1