diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-09 18:36:17 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-09 18:36:17 -0400 |
commit | 1ac6d11165dffed9ca244b3e62545506f7e9c284 (patch) | |
tree | 8907d4fb90d563c15ce66d1c095298127206badb /src/main/java/com/gitblit | |
parent | 2bfea381bbcea934f7e20f8c00db86e990c2fc93 (diff) | |
download | gitblit-1ac6d11165dffed9ca244b3e62545506f7e9c284.tar.gz gitblit-1ac6d11165dffed9ca244b3e62545506f7e9c284.zip |
Fix invalid generated SSH url for port 22
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r-- | src/main/java/com/gitblit/transport/ssh/SshDaemon.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java index 7c512907..261daa66 100644 --- a/src/main/java/com/gitblit/transport/ssh/SshDaemon.java +++ b/src/main/java/com/gitblit/transport/ssh/SshDaemon.java @@ -142,7 +142,7 @@ public class SshDaemon { public String formatUrl(String gituser, String servername, String repository) { if (sshd.getPort() == DEFAULT_PORT) { // standard port - return MessageFormat.format("{0}@{1}/{2}", gituser, servername, + return MessageFormat.format("ssh://{0}@{1}/{2}", gituser, servername, repository); } else { // non-standard port |