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

This commit is contained in:
Bo-Yi Wu authored and Lunny Xiao committed 2017-03-18 18:59:07 +08:00
1 parent 5ecb369dac
commit 1c3bd436cc
7 files changed
+32 -40

No files matched your search

+1 -1
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.