diff options
| author | Jeff Carr <[email protected]> | 2025-10-02 05:10:58 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-02 05:10:58 -0500 |
| commit | 966c40f2c4c80fcecc8d451293b6d512bc9f6d91 (patch) | |
| tree | 0e07b1c621d29e2a2080c896fbe69a29a8011ee3 /repo.new.go | |
| parent | 3718ebe168dc7c4ce553bdc9b4e19b4b7bfe0d33 (diff) | |
quiet more old stuff
Diffstat (limited to 'repo.new.go')
| -rw-r--r-- | repo.new.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/repo.new.go b/repo.new.go index cb79bf2..48c588b 100644 --- a/repo.new.go +++ b/repo.new.go @@ -4,7 +4,6 @@ import ( "bytes" "errors" "fmt" - "net/url" "os/exec" "path/filepath" "strings" @@ -124,14 +123,13 @@ func NewRepo(fullpath string) (*Repo, error) { return &repo, nil } // log.Info("GET Namespace from URL", giturl) - tmpURL, err := url.Parse(giturl) + tmpURL, err := ParseGitURL(giturl) if err != nil { - log.Info(repo.FullPath, "URL parse failed", giturl, err) + log.Info(repo.FullPath, "URL can not be parsed for namespace") return &repo, nil } // log.Info(repo.FullPath, "namespace might be:", tmpURL.Hostname(), tmpURL.Path) repo.Namespace = filepath.Join(tmpURL.Hostname(), tmpURL.Path) - // log.Info(repo.FullPath, "Namesapce =", repo.Namespace) } return &repo, nil } |
