Skip to content

Commit

Permalink
Reserve user/repo pattern for rss feature (#16323)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 committed Jul 1, 2021
1 parent fc1d962 commit 290f458
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ func GetRepoInitFile(tp, name string) ([]byte, error) {

var (
reservedRepoNames = []string{".", ".."}
reservedRepoPatterns = []string{"*.git", "*.wiki"}
reservedRepoPatterns = []string{"*.git", "*.wiki", "*.rss", "*.atom"}
)

// IsUsableRepoName returns true when repository is usable
Expand Down
2 changes: 1 addition & 1 deletion models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ var (
"user",
}

reservedUserPatterns = []string{"*.keys", "*.gpg"}
reservedUserPatterns = []string{"*.keys", "*.gpg", "*.rss", "*.atom"}
)

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

0 comments on commit 290f458

Please sign in to comment.