Browse Source

If we have a cache-miss in repository loading, return a deep copy

tags/v1.3.2
James Moger 10 years ago
parent
commit
6a28f6dd38
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/main/java/com/gitblit/GitBlit.java

+ 1
- 1
src/main/java/com/gitblit/GitBlit.java View File

@@ -1670,7 +1670,7 @@ public class GitBlit implements ServletContextListener {
return null;
}
addToCachedRepositoryList(model);
return model;
return DeepCopier.copy(model);
}
// cached model

Loading…
Cancel
Save