6
0
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:
Grzegorz Dlugoszewski
2020-06-18 15:47:15 +02:00
parent 5a588f22d1
commit 3e9c7644c6
4 changed files with 12 additions and 15 deletions

View File

@@ -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" {