feat: Only use issue and wiki on repo. (#1297)
This commit is contained in:
parent
5ecb369dac
commit
1c3bd436cc
7 changed files with 32 additions and 40 deletions
|
@ -553,7 +553,7 @@ func (repo *Repository) CanBeForked() bool {
|
|||
|
||||
// CanEnablePulls returns true if repository meets the requirements of accepting pulls.
|
||||
func (repo *Repository) CanEnablePulls() bool {
|
||||
return !repo.IsMirror
|
||||
return !repo.IsMirror && !repo.IsBare
|
||||
}
|
||||
|
||||
// AllowsPulls returns true if repository meets the requirements of accepting pulls and has them enabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue