]> source.dussan.org Git - gitblit.git/commitdiff
Fixed case-sensitivity bug in repository name enumeration
authorJames Moger <james.moger@gitblit.com>
Mon, 24 Jun 2013 19:15:52 +0000 (15:15 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 24 Jun 2013 19:15:52 +0000 (15:15 -0400)
src/main/java/com/gitblit/GitBlit.java

index eabaa3f2d01e7796de2ea764bdc2455c7f98e3eb..bcfebb539885cc4299f2bc65a1db440b5c4c2103 100644 (file)
@@ -1475,7 +1475,10 @@ public class GitBlit implements ServletContextListener {
                }
                
                // return sorted copy of cached list
-               List<String> list = new ArrayList<String>(repositoryListCache.keySet());                
+               List<String> list = new ArrayList<String>();
+               for (RepositoryModel model : repositoryListCache.values()) {
+                       list.add(model.name);
+               }
                StringUtils.sortRepositorynames(list);
                return list;
        }