docs: remote names may not start or end with space

This commit is contained in:
albertony 2022-09-16 16:59:08 +02:00 committed by Nick Craig-Wood
parent 683178a1f4
commit f650a543ef
2 changed files with 2 additions and 1 deletions

View File

@ -340,6 +340,7 @@ Will get their own names
Remote names are case sensitive, and must adhere to the following rules:
- May only contain `0`-`9`, `A`-`Z`, `a`-`z`, `_`, `-`, `.` and space.
- May not start with `-` or space.
- May not end with space.
Quoting and the shell
---------------------

View File

@ -17,7 +17,7 @@ const (
)
var (
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-`, `.` and space")
errInvalidCharacters = errors.New("config name contains invalid characters - may only contain `0-9`, `A-Z`, `a-z`, `_`, `-`, `.` and space, while not start or end with space")
errCantBeEmpty = errors.New("can't use empty string as a path")
errCantStartWithDash = errors.New("config name starts with `-`")
errBadConfigParam = errors.New("config parameters may only contain `0-9`, `A-Z`, `a-z` and `_`")