Skip to content

Commit 7dcb601

Browse files
committed
User/Org/Repo reserve "*.rss" pattern
1 parent 86e2789 commit 7dcb601

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ func GetRepoInitFile(tp, name string) ([]byte, error) {
10241024

10251025
var (
10261026
reservedRepoNames = []string{".", ".."}
1027-
reservedRepoPatterns = []string{"*.git", "*.wiki"}
1027+
reservedRepoPatterns = []string{"*.git", "*.wiki", "*.rss"}
10281028
)
10291029

10301030
// IsUsableRepoName returns true when repository is usable

models/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,7 @@ var (
811811
"user",
812812
}
813813

814-
reservedUserPatterns = []string{"*.keys", "*.gpg"}
814+
reservedUserPatterns = []string{"*.keys", "*.gpg", "*.rss"}
815815
)
816816

817817
// isUsableName checks if name is reserved or pattern of name is not allowed

0 commit comments

Comments
 (0)