From 3b6904b1d92b987e308f5fb3308fec215ba1f1ae Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 13 Dec 2011 16:51:36 -0500
Subject: [PATCH] Integrated Clippy for a better copy-to-clipboard experience

---
 src/com/gitblit/GitServlet.java |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/com/gitblit/GitServlet.java b/src/com/gitblit/GitServlet.java
index daf5d96..b928d83 100644
--- a/src/com/gitblit/GitServlet.java
+++ b/src/com/gitblit/GitServlet.java
@@ -1,13 +1,41 @@
+/*
+ * Copyright 2011 gitblit.com.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package com.gitblit;
 
+/**
+ * The GitServlet exists to force configuration of the JGit GitServlet based on
+ * the Gitblit settings from either gitblit.properties or from context
+ * parameters in the web.xml file.
+ * 
+ * Access to this servlet is protected by the GitFilter.
+ * 
+ * @author James Moger
+ * 
+ */
 public class GitServlet extends org.eclipse.jgit.http.server.GitServlet {
 
 	private static final long serialVersionUID = 1L;
 
+	/**
+	 * Configure the servlet from Gitblit's configuration.
+	 */
 	@Override
 	public String getInitParameter(String name) {
 		if (name.equals("base-path")) {
-			return GitBlit.getString(Keys.git.repositoriesFolder, "git");
+			return GitBlit.getRepositoriesFolder().getAbsolutePath();
 		} else if (name.equals("export-all")) {
 			return "1";
 		}

--
Gitblit v1.9.1