Tom
2014-11-14 feefe7a2febab2e9fecc44b170ae900215816f7c
src/main/java/com/gitblit/servlet/RawServlet.java
@@ -108,9 +108,8 @@
         branch = Repository.shortenRefName(branch).replace('/', fsc);
      }
      String encodedPath = path == null ? "" : path.replace(' ', '-');
      encodedPath = encodedPath.replace('/', fsc);
      return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + (path == null ? "" : encodedPath)));
      String encodedPath = path == null ? "" : path.replace('/', fsc);
      return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + encodedPath));
   }
   protected String getBranch(String repository, HttpServletRequest request) {
@@ -176,7 +175,7 @@
         } else {
            repository = path.substring(0, slash);
         }
         offset += ( slash + 1 );
         offset = ( slash + 1 );
         r = repositoryManager.getRepository(repository, false);
         if (repository.equals(path)) {
            // either only repository in url or no repository found