summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-09-05 12:12:39 -0400
committerJames Moger <james.moger@gitblit.com>2014-09-05 12:12:39 -0400
commit884fd0d19330ecd8fa292d0bbfae3808bc34b97e (patch)
tree14d2ed5d74cc300166fe302309d6c6017072beba /src/main/java
parent3fd79289219e4f35df180a2a48ede9db10d714d3 (diff)
parent0a73abb640c9b92d55c5589260bd6c1f7e8b6d51 (diff)
downloadgitblit-884fd0d19330ecd8fa292d0bbfae3808bc34b97e.tar.gz
gitblit-884fd0d19330ecd8fa292d0bbfae3808bc34b97e.zip
Merge branch 'ticket/163' into develop
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/gitblit/servlet/RawServlet.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/servlet/RawServlet.java b/src/main/java/com/gitblit/servlet/RawServlet.java
index cda24755..b11bed98 100644
--- a/src/main/java/com/gitblit/servlet/RawServlet.java
+++ b/src/main/java/com/gitblit/servlet/RawServlet.java
@@ -176,10 +176,7 @@ public class RawServlet extends HttpServlet {
} else {
repository = path.substring(0, slash);
}
- offset += slash;
- if (offset == 0) {
- offset++;
- }
+ offset += ( slash + 1 );
r = repositoryManager.getRepository(repository, false);
if (repository.equals(path)) {
// either only repository in url or no repository found