mirror of
https://gitee.com/goploy/goploy.git
synced 2024-11-29 18:57:59 +08:00
Fixed: ping repo
This commit is contained in:
parent
8487681e1d
commit
f34a36aba8
@ -126,7 +126,7 @@ func (Project) PingRepos(gp *server.Goploy) server.Response {
|
||||
return response.JSON{Code: response.Error, Message: err.Error()}
|
||||
}
|
||||
|
||||
if strings.Contains(reqData.URL, "git@") {
|
||||
if strings.HasSuffix(reqData.URL, "git@") {
|
||||
host := strings.Split(reqData.URL, "git@")[1]
|
||||
host = strings.Split(host, ":")[0]
|
||||
homeDir, err := os.UserHomeDir()
|
||||
|
Loading…
Reference in New Issue
Block a user