mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 17:24:49 +00:00
Rename bundle to dump
This commit is contained in:
@@ -11,8 +11,7 @@ import (
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
// ErrEmptyURLPath is an error indicating that the path part of URL is empty.
|
||||
var ErrEmptyURLPath = errors.New("Parsed URL path is empty")
|
||||
var errEmptyURLPath = errors.New("Parsed URL path is empty")
|
||||
|
||||
// scpSyntax matches the SCP-like addresses used by the ssh protocol (eg, [user@]host.xz:path/to/repo.git/).
|
||||
// See: https://golang.org/src/cmd/go/internal/get/vcs.go
|
||||
@@ -36,7 +35,7 @@ func ParseURL(rawURL string) (url *urlpkg.URL, err error) {
|
||||
}
|
||||
|
||||
if url.Host == "" && url.Path == "" {
|
||||
return nil, ErrEmptyURLPath
|
||||
return nil, errEmptyURLPath
|
||||
}
|
||||
|
||||
if url.Scheme == "git+ssh" {
|
||||
|
||||
Reference in New Issue
Block a user