Allow single name component repository names

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
This commit is contained in:
Derek McGowan 2015-01-28 14:51:02 -08:00
parent 686da01dd7
commit 94309badec
3 changed files with 15 additions and 5 deletions

View file

@ -9,6 +9,9 @@ func TestRepositoryNameRegexp(t *testing.T) {
input string
err error
}{
{
input: "short",
},
{
input: "simple/name",
},
@ -41,7 +44,6 @@ func TestRepositoryNameRegexp(t *testing.T) {
},
{
input: "asdf",
err: ErrRepositoryNameMissingComponents,
},
{
input: "asdf$$^/aa",
@ -58,7 +60,7 @@ func TestRepositoryNameRegexp(t *testing.T) {
},
{
input: "a",
err: ErrRepositoryNameMissingComponents,
err: ErrRepositoryNameComponentShort,
},
{
input: "a-/a/a/a",