summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-03-18 05:59:07 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-03-18 18:59:07 +0800
commit1c3bd436ccbe3852541dc7162df41632658769db (patch)
tree4ee965f43e0dee397c05557329bf524974cd94a4 /models
parent5ecb369dacb929c218399379350fa2ecb05693ae (diff)
downloadgitea-1c3bd436ccbe3852541dc7162df41632658769db.tar.gz
gitea-1c3bd436ccbe3852541dc7162df41632658769db.zip
feat: Only use issue and wiki on repo. (#1297)
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index eac0f015f0..54be49d902 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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.