This commit is contained in:
Unknwon 2014-11-23 02:33:47 -05:00
parent dc53270da9
commit 1b66600bd0
4 changed files with 36 additions and 29 deletions

View file

@ -243,7 +243,7 @@ func IsRepositoryExist(u *User, repoName string) (bool, error) {
var (
illegalEquals = []string{"debug", "raw", "install", "api", "avatar", "user", "org", "help", "stars", "issues", "pulls", "commits", "repo", "template", "admin", "new"}
illegalSuffixs = []string{".git"}
illegalSuffixs = []string{".git", ".keys"}
)
// IsLegalName returns false if name contains illegal characters.