code: func NormalizeRepoURL(repoURL string, auth bool) (*url.URL, error) {
  	host, project, err := ParseRepoURL(repoURL)
  	if err != nil {
  		return nil, err
  	}
  	u := FormatRepoURL(host, project, auth)
  	return &u, nil
  }
docs: // NormalizeRepoURL is a shortcut for ParseRepoURL and FormatRepoURL.