diff options
-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 7504b4be..9fb96a5d 100644 --- a/src/main/java/com/gitblit/servlet/RawServlet.java +++ b/src/main/java/com/gitblit/servlet/RawServlet.java @@ -172,10 +172,7 @@ public class RawServlet extends DaggerServlet { } 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 |