diff options
author | David Turner <dturner@twosigma.com> | 2019-07-25 15:44:34 -0400 |
---|---|---|
committer | David Turner <dturner@twosigma.com> | 2019-08-02 12:16:31 -0400 |
commit | 59640fb4f0615887dc8683e6eed54ac4ecabe35c (patch) | |
tree | 8197f7e1483034a93c7dad6a88faace2d2e13ae8 /org.eclipse.jgit.http.server | |
parent | e9dd131d55041c596398400e2c1cef75424799cd (diff) | |
download | jgit-59640fb4f0615887dc8683e6eed54ac4ecabe35c.tar.gz jgit-59640fb4f0615887dc8683e6eed54ac4ecabe35c.zip |
Constants for objects and info/{http-,}alternates
These are useful to avoid typos, and also for tab completion.
Change-Id: I0f2d267e46b36bc40297c9657c447f3fd8b9f831
Signed-off-by: David Turner <dturner@twosigma.com>
Diffstat (limited to 'org.eclipse.jgit.http.server')
-rw-r--r-- | org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java index 51de8abd0e..1c5e7ec598 100644 --- a/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java +++ b/org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitFilter.java @@ -248,13 +248,13 @@ public class GitFilter extends MetaFilter { .through(enabled)// .with(new TextFileServlet(Constants.HEAD)); - final String info_alternates = "objects/info/alternates"; + final String info_alternates = Constants.OBJECTS + "/" + Constants.INFO_ALTERNATES; serve("*/" + info_alternates)// .through(mustBeLocal)// .through(enabled)// .with(new TextFileServlet(info_alternates)); - final String http_alternates = "objects/info/http-alternates"; + final String http_alternates = Constants.OBJECTS + "/" + Constants.INFO_HTTP_ALTERNATES; serve("*/" + http_alternates)// .through(mustBeLocal)// .through(enabled)// |