From 69007029f122c3f77db044e879188cc12be3c2f6 Mon Sep 17 00:00:00 2001
From: Florian Zschocke <florian.zschocke@cycos.com>
Date: Mon, 26 Aug 2013 06:39:57 -0400
Subject: [PATCH] Add method JGitUtils.createRepository(folder, name, shared) to create a new repository as if it was created with the --shared command line switch of git.

---
 src/main/java/com/gitblit/RedmineUserService.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/gitblit/RedmineUserService.java b/src/main/java/com/gitblit/RedmineUserService.java
index 9d571e3..d677e3e 100644
--- a/src/main/java/com/gitblit/RedmineUserService.java
+++ b/src/main/java/com/gitblit/RedmineUserService.java
@@ -135,7 +135,7 @@
         user.accountType = getAccountType();
         user.displayName = current.user.firstname + " " + current.user.lastname;
         user.emailAddress = current.user.mail;
-        user.password = ExternalAccount;
+        user.password = Constants.EXTERNAL_ACCOUNT;
         if (!StringUtils.isEmpty(current.user.login)) {
         	// only admin users can get login name
         	// evidently this is an undocumented behavior of Redmine
@@ -158,7 +158,7 @@
 
         String url = this.settings.getString(Keys.realm.redmine.url, "");
         if (!url.endsWith("/")) {
-        	url.concat("/");
+        	url = url.concat("/");
         }
         HttpURLConnection http;
         if (username == null) {

--
Gitblit v1.9.1