diff --git a/src/main/scala/gitbucket/core/api/ApiRepository.scala b/src/main/scala/gitbucket/core/api/ApiRepository.scala index 410e63d..625b618 100644 --- a/src/main/scala/gitbucket/core/api/ApiRepository.scala +++ b/src/main/scala/gitbucket/core/api/ApiRepository.scala @@ -21,7 +21,7 @@ val url = ApiPath(s"/api/v3/repos/${full_name}") val clone_url = ApiPath(s"/git/${full_name}.git") val html_url = ApiPath(s"/${full_name}") - val ssh_url = Some(SshPath(s":${full_name}.git")) + val ssh_url = Some(SshPath("")) } object ApiRepository { diff --git a/src/main/scala/gitbucket/core/servlet/GitRepositoryServlet.scala b/src/main/scala/gitbucket/core/servlet/GitRepositoryServlet.scala index d1b9d70..8340561 100644 --- a/src/main/scala/gitbucket/core/servlet/GitRepositoryServlet.scala +++ b/src/main/scala/gitbucket/core/servlet/GitRepositoryServlet.scala @@ -416,7 +416,7 @@ pusherAccount, repositoryInfo, ownerAccount, - ref = branchName, + ref = command.getRefName, refType = refType ) }