diff --git a/pkg/remote/remote.go b/pkg/remote/remote.go index cddd2bd2..23167b0a 100644 --- a/pkg/remote/remote.go +++ b/pkg/remote/remote.go @@ -129,7 +129,8 @@ func Parse(goGetterSrc string) (*Source, error) { if len(pathComponents) != 2 { if strings.HasSuffix(u.Path, ".git") { - pathComponents = []string{u.Path, ""} + dir := u.Path[1:] + pathComponents = []string{dir, ""} } else { dir := filepath.Dir(u.Path) if len(dir) > 0 {