Commits

Sebastian Sdorra committed 05ab73b Merge

merge with branch issue-377

Comments (0)

Files changed (2)

scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitRepositoryViewer.java

 
   /** Field description */
   public static final String RESOURCE_GITINDEX =
-    "/sonia/scm/git.index.mustache";
+    "sonia/scm/git.index.mustache";
 
   /** Field description */
   private static final int CHANGESET_PER_BRANCH = 10;

scm-webapp/src/main/java/sonia/scm/template/ServletMustacheFactory.java

           resourceName);
       }
 
+      if (resourceName.startsWith("/"))
+      {
+        resourceName = resourceName.substring(1);
+      }
+
       ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
 
       if (classLoader == null)
     {
       if (logger.isTraceEnabled())
       {
-        logger.trace("found resoruce for {}, return reader", resourceName);
+        logger.trace("found resource for {}, return reader", resourceName);
       }
 
       reader = new BufferedReader(new InputStreamReader(is, Charsets.UTF_8));