func loadRepositoryName(reposName string, checkRemoteName bool) (string, string, error) {
	if err := validateNoSchema(reposName); err != nil {
		return "", "", err
	}
	indexName, remoteName := splitReposName(reposName)

	var err error
	if indexName, err = ValidateIndexName(indexName); err != nil {
		return "", "", err
	}
	if checkRemoteName {
		if err = validateRemoteName(remoteName); err != nil {
			return "", "", err
		}
	}
	return indexName, remoteName, nil
}
// loadRepositoryName returns the repo name splitted into index name
// and remote repo name. It returns an error if the name is not valid.
loadRepositoryName returns the repo name splitted into index name
and remote repo name. It returns an error if the name is not valid.
// loadRepositoryName returns the repo name splitted into index name // and remote repo name . It returns an error if the name is not valid .
func loadRepositoryName(reposName string, checkRemoteName bool) (string, string, error) {
	if err := validateNoSchema(reposName); err != nil {
		return "", "", err
	}
	indexName, remoteName := splitReposName(reposName)
	var err error
	if indexName, err = ValidateIndexName(indexName); err != nil {
		return "", "", err
	}
	if checkRemoteName {
		if err = validateRemoteName(remoteName); err != nil {
			return "", "", err
		}
	}
	return indexName, remoteName, nil
}
func loadRepositoryName ( reposName string , checkRemoteName bool ) ( string , string , error ) { if err := validateNoSchema ( reposName ) ; err != nil { return " " , " " , err } indexName , remoteName := splitReposName ( reposName ) var err error if indexName , err = ValidateIndexName ( indexName ) ; err != nil { return " " , " " , err } if checkRemoteName { if err = validateRemoteName ( remoteName ) ; err != nil { return " " , " " , err } } return indexName , remoteName , nil }
loadRepositoryName returns the repo name splitted into index name
and remote repo name.
loadRepositoryName returns the repo name splitted into index name and remote repo name .