summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-05-22 19:24:58 -0400
committerJames Moger <james.moger@gitblit.com>2014-05-22 19:24:58 -0400
commit8bb12d623891928444bf82cf1e6cdc1c09ea3633 (patch)
treea0fd364ab71d994194971db07a60a4bfba6fd2fd /src/main
parent8ab46a7c372ade433e36fe3d2cf6494050fc7cf5 (diff)
downloadgitblit-8bb12d623891928444bf82cf1e6cdc1c09ea3633.tar.gz
gitblit-8bb12d623891928444bf82cf1e6cdc1c09ea3633.zip
Force repository cache to refresh metadata after ref deletion/creation
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/gitblit/manager/RepositoryManager.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/manager/RepositoryManager.java b/src/main/java/com/gitblit/manager/RepositoryManager.java
index 7351eb97..40e38640 100644
--- a/src/main/java/com/gitblit/manager/RepositoryManager.java
+++ b/src/main/java/com/gitblit/manager/RepositoryManager.java
@@ -464,6 +464,8 @@ public class RepositoryManager implements IRepositoryManager {
public void resetRepositoryCache(String repositoryName) {
removeFromCachedRepositoryList(repositoryName);
clearRepositoryMetadataCache(repositoryName);
+ // force a reload of the repository data (ticket-82, issue-433)
+ getRepositoryModel(repositoryName);
}
/**