From: James Moger Date: Thu, 22 May 2014 23:24:58 +0000 (-0400) Subject: Force repository cache to refresh metadata after ref deletion/creation X-Git-Tag: v1.6.0~59^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8bb12d623891928444bf82cf1e6cdc1c09ea3633;p=gitblit.git Force repository cache to refresh metadata after ref deletion/creation --- 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); } /**