func parseStandardURL(repo string) (pathParts []string, err error) {
	parsedURL, err := url.Parse(repo)
	if err != nil {
		return
	}

	if parsedURL.Host == "" {
		err = errors.New("Missing host part")
		return
	}

	pathParts = append(pathParts, parsedURL.Host)

	for _, pathPart := range strings.Split(parsedURL.Path, "/") {
		if pathPart == "" {
			continue
		}
		pathParts = append(pathParts, pathPart)
	}

	return
}
// parseStandardURL parses a standard URI formatted git URL
parseStandardURL parses a standard URI formatted git URL
// parseStandardURL parses a standard URI formatted git URL
func parseStandardURL(repo string) (pathParts []string, err error) {
	parsedURL, err := url.Parse(repo)
	if err != nil {
		return
	}
	if parsedURL.Host == "" {
		err = errors.New("Missing host part")
		return
	}
	pathParts = append(pathParts, parsedURL.Host)
	for _, pathPart := range strings.Split(parsedURL.Path, "/") {
		if pathPart == "" {
			continue
		}
		pathParts = append(pathParts, pathPart)
	}
	return
}
func parseStandardURL ( repo string ) ( pathParts [ ] string , err error ) { parsedURL , err := url . Parse ( repo ) if err != nil { return } if parsedURL . Host == " " { err = errors . New ( " " ) return } pathParts = append ( pathParts , parsedURL . Host ) for _ , pathPart := range strings . Split ( parsedURL . Path , " " ) { if pathPart == " " { continue } pathParts = append ( pathParts , pathPart ) } return }
parseStandardURL parses a standard URI formatted git URL
parseStandardURL parses a standard URI formatted git URL