From a341a5e8d5080142583fc03ea34dc1db7eb10364 Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 5 May 2014 09:28:09 -0400 Subject: Update releases.moxie --- releases.moxie | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'releases.moxie') diff --git a/releases.moxie b/releases.moxie index 48f430e2..a6570194 100644 --- a/releases.moxie +++ b/releases.moxie @@ -19,7 +19,8 @@ r23: { changes: - improve French translation (pr-176) - simplify current plugin release detection and ignore the currentRelease registry field - additions: ~ + additions: + - added TortoiseGit client app menu (pr-182) dependencyChanges: - update to Apache MINA/SSHD 0.11.0 (issue-410) contributors: @@ -29,6 +30,7 @@ r23: { - Olivier Rouits - Owen Nelson - Alexander Zabluda + - Philipp Beckmann } # -- cgit v1.2.3 From b016de996e77b3d7b6e68d8442c47a50e2a3d2eb Mon Sep 17 00:00:00 2001 From: James Moger Date: Wed, 7 May 2014 09:22:56 -0400 Subject: Fix transport determination for SSH urls on port 22 --- releases.moxie | 2 ++ src/main/java/com/gitblit/Constants.java | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'releases.moxie') diff --git a/releases.moxie b/releases.moxie index a6570194..2a36ac6e 100644 --- a/releases.moxie +++ b/releases.moxie @@ -16,6 +16,7 @@ r23: { - Fix forcing default locale to en or LANG_CC for web ui (ticket-51) - Fix inconsistency with repository ownership permission checking (ticket-52) - Prevent submission from New|Edit ticket page with empty titles (ticket-53) + - Fix transport determination for SSH urls served on port 22 (issue-421, ticket-63) changes: - improve French translation (pr-176) - simplify current plugin release detection and ignore the currentRelease registry field @@ -31,6 +32,7 @@ r23: { - Owen Nelson - Alexander Zabluda - Philipp Beckmann + - Jakob Boysen } # diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index af533996..e4d92e1a 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -554,7 +554,12 @@ public class Constants { } public static Transport fromUrl(String url) { - String scheme = url.substring(0, url.indexOf("://")); + int delim = url.indexOf("://"); + if (delim == -1) { + // if no protocol is specified, SSH is assumed by git clients + return SSH; + } + String scheme = url.substring(0, delim); return fromString(scheme); } } -- cgit v1.2.3