Paul Martin
2016-04-06 2fca824e349f5fecbf71d940c4521644e92cb0dd
src/main/java/com/gitblit/manager/RepositoryManager.java
@@ -1113,9 +1113,16 @@
         // find the root, cached
         String key = getRepositoryKey(repository);
         RepositoryModel model = repositoryListCache.get(key);
         if (model == null) {
            return null;
         }
         while (model.originRepository != null) {
            String originKey = getRepositoryKey(model.originRepository);
            model = repositoryListCache.get(originKey);
            if (model == null) {
               return null;
            }
         }
         ForkModel root = getForkModelFromCache(model.name);
         return root;
@@ -1347,7 +1354,7 @@
   }
   /**
    * Creates/updates the repository model keyed by reopsitoryName. Saves all
    * Creates/updates the repository model keyed by repositoryName. Saves all
    * repository settings in .git/config. This method allows for renaming
    * repositories and will update user access permissions accordingly.
    *