]> source.dussan.org Git - gitblit.git/commitdiff
Force repository cache to refresh metadata after ref deletion/creation 82/82/1
authorJames Moger <james.moger@gitblit.com>
Thu, 22 May 2014 23:24:58 +0000 (19:24 -0400)
committerJames Moger <james.moger@gitblit.com>
Thu, 22 May 2014 23:24:58 +0000 (19:24 -0400)
src/main/java/com/gitblit/manager/RepositoryManager.java

index 7351eb97b7e08c069da6ef9454ec1c4c6f7b0330..40e386402ed48011c540455263005f3cdf4ff710 100644 (file)
@@ -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);
        }
 
        /**