get repo name
(repoUrl string)
| 451 | |
| 452 | // get repo name |
| 453 | func getRepoName(repoUrl string) string { |
| 454 | |
| 455 | index := strings.LastIndex(repoUrl, "/") |
| 456 | return strings.Replace(repoUrl[index+1:], ".git", "", -1) |
| 457 | } |
| 458 | |
| 459 | func getLocalGitRepoUrl() (gitRemmoteUrl, pathName string) { |
| 460 | // current directory |
no outgoing calls
no test coverage detected