feat: Only use issue and wiki on repo. (#1297)

This commit is contained in:
Bo-Yi Wu 2017-03-18 05:59:07 -05:00 committed by Lunny Xiao
parent 5ecb369dac
commit 1c3bd436cc
7 changed files with 32 additions and 40 deletions

View file

@ -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.