summaryrefslogtreecommitdiffstats
path: root/models/repo.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-23 02:33:47 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-23 02:33:47 -0500
commit1b66600bd0e9eaa52f2f14f58c9cdf504efadaf5 (patch)
tree1f86ffa41b0b64a6a4bb06dd150998e95d29dbff /models/repo.go
parentdc53270da91c369cb00f992a600a1e014d555278 (diff)
downloadgitea-1b66600bd0e9eaa52f2f14f58c9cdf504efadaf5.tar.gz
gitea-1b66600bd0e9eaa52f2f14f58c9cdf504efadaf5.zip
Fix #652
Diffstat (limited to 'models/repo.go')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index 937bd8c1b6..e4f470680f 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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.