James Moger
2015-03-07 c9afc9ed01dbc6b74ecb2734d2cd7ed943b5d643
src/main/java/com/gitblit/servlet/RawServlet.java
@@ -104,9 +104,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) {
@@ -172,7 +171,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