diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-27 23:06:13 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-27 23:06:13 -0400 |
commit | 44c005e7c1efb0564d07394ca2e98308b9b48581 (patch) | |
tree | 8e69bd2d70be9f01cad542ab190410f279e62b2b /src/main/java/com/gitblit/servlet | |
parent | a1bf199ad6a9ebde4c0617ff1fc29ee0fc11c3a2 (diff) | |
download | gitblit-44c005e7c1efb0564d07394ca2e98308b9b48581.tar.gz gitblit-44c005e7c1efb0564d07394ca2e98308b9b48581.zip |
Use consistent keys for repository cache lookups
Diffstat (limited to 'src/main/java/com/gitblit/servlet')
-rw-r--r-- | src/main/java/com/gitblit/servlet/RawServlet.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/servlet/RawServlet.java b/src/main/java/com/gitblit/servlet/RawServlet.java index 15e036ea..0def062a 100644 --- a/src/main/java/com/gitblit/servlet/RawServlet.java +++ b/src/main/java/com/gitblit/servlet/RawServlet.java @@ -175,6 +175,9 @@ public class RawServlet extends DaggerServlet { repository = path.substring(0, slash); } offset += slash; + if (offset == 0) { + offset++; + } r = repositoryManager.getRepository(repository, false); if (repository.equals(path)) { // either only repository in url or no repository found |