(refs #326)SSH clone URL includes username for logged-in users and it's hidden for non logged-in users.

This commit is contained in:
takezoe
2014-03-25 05:09:09 +09:00
parent 0d918add28
commit 1fe649e70f
4 changed files with 9 additions and 9 deletions

View File

@@ -294,7 +294,7 @@ object RepositoryService {
lazy val host = """^https?://(.+?)(:\d+)?/""".r.findFirstMatchIn(httpUrl).get.group(1)
def sshUrl(port: Int) = s"ssh://${host}:${port}/${owner}/${name}.git"
def sshUrl(port: Int, userName: String) = s"ssh://${userName}@${host}:${port}/${owner}/${name}.git"
/**
* Creates instance with issue count and pull request count.