summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-09 18:36:17 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-09 18:36:17 -0400
commit1ac6d11165dffed9ca244b3e62545506f7e9c284 (patch)
tree8907d4fb90d563c15ce66d1c095298127206badb /src/main/java/com/gitblit
parent2bfea381bbcea934f7e20f8c00db86e990c2fc93 (diff)
downloadgitblit-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.java2
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