MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / getRepoName

Function getRepoName

cli/internal/biz/workspace/model.go:453–457  ·  view source on GitHub ↗

get repo name

(repoUrl string)

Source from the content-addressed store, hash-verified

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected