From 171f97868dccb6d2c2a73b44b07593ccb8f348e6 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 16 Mar 2017 23:10:45 -0400 Subject: repo: allow issues and wiki for bare repository (#4104) --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models') 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. -- cgit v1.2.3