diff options
author | James Moger <james.moger@gitblit.com> | 2014-09-05 12:12:39 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-09-05 12:12:39 -0400 |
commit | 884fd0d19330ecd8fa292d0bbfae3808bc34b97e (patch) | |
tree | 14d2ed5d74cc300166fe302309d6c6017072beba /src/main/java | |
parent | 3fd79289219e4f35df180a2a48ede9db10d714d3 (diff) | |
parent | 0a73abb640c9b92d55c5589260bd6c1f7e8b6d51 (diff) | |
download | gitblit-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.java | 5 |
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 |