diff options
author | Unknwon <u@gogs.io> | 2017-03-16 23:10:45 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-16 23:10:45 -0400 |
commit | 171f97868dccb6d2c2a73b44b07593ccb8f348e6 (patch) | |
tree | 16a6a9ab501004d83237126956b60926a523bc42 /models | |
parent | becaec19a773301546045294d850d79614809c7c (diff) |
repo: allow issues and wiki for bare repository (#4104)
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 15a3cd34..b48cb1aa 100644 --- a/models/repo.go +++ b/models/repo.go @@ -452,7 +452,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 } // AllowPulls returns true if repository meets the requirements of accepting pulls and has them enabled. |