From 8bb12d623891928444bf82cf1e6cdc1c09ea3633 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 22 May 2014 19:24:58 -0400 Subject: [PATCH] Force repository cache to refresh metadata after ref deletion/creation --- src/main/java/com/gitblit/manager/RepositoryManager.java | 2 ++ 1 file changed, 2 insertions(+) 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); } /** -- 2.39.5