From c9afc9ed01dbc6b74ecb2734d2cd7ed943b5d643 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Sat, 07 Mar 2015 09:30:58 -0500 Subject: [PATCH] Merged #245 "Strip line breaks from pasted SSH keys" --- src/main/java/com/gitblit/Constants.java | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index 2007c0a..fa8af25 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -122,6 +122,16 @@ public static final String R_TICKETS_PATCHSETS = "refs/tickets/"; + public static final String R_MASTER = "refs/heads/master"; + + public static final String MASTER = "master"; + + public static final String R_DEVELOP = "refs/heads/develop"; + + public static final String DEVELOP = "develop"; + + public static final String AUTHENTICATION_TYPE = "authentication-type"; + public static String getVersion() { String v = Constants.class.getPackage().getImplementationVersion(); if (v == null) { @@ -405,11 +415,11 @@ /** * Enumeration of the feed content object types. */ - public static enum FeedContentObjectType { + public static enum FeedObjectType { COMMIT, TAG; - public static FeedContentObjectType forName(String name) { - for (FeedContentObjectType type : values()) { + public static FeedObjectType forName(String name) { + for (FeedObjectType type : values()) { if (type.name().equalsIgnoreCase(name)) { return type; } -- Gitblit v1.9.1