James Moger
2014-11-04 4e84166db5c5538e3984d9d2d6bb1f9902e65ee0
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