]> source.dussan.org Git - gitblit.git/commitdiff
Fix invalid generated SSH url for port 22 98/98/1
authorJames Moger <james.moger@gitblit.com>
Mon, 9 Jun 2014 22:36:17 +0000 (18:36 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 9 Jun 2014 22:36:17 +0000 (18:36 -0400)
src/main/java/com/gitblit/transport/ssh/SshDaemon.java

index 7c5129073a7974fec7632512eeda299460b4ea85..261daa66cf352f89e74b0e199d076b4c4b7f17d3 100644 (file)
@@ -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