summaryrefslogtreecommitdiffstats
path: root/modules/context/api.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2019-01-18 00:01:04 +0000
committertechknowlogick <hello@techknowlogick.com>2019-01-17 19:01:04 -0500
commit07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8 (patch)
tree87ced90635366b09e7e5f2634acfe2cbec2bc9f6 /modules/context/api.go
parent9edc829c1758b436f8f52ebe61479af087940d60 (diff)
downloadgitea-07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8.tar.gz
gitea-07802a2bc503a8c13d50e7ef04a0e13ccf2a90f8.zip
Refactor repo.isBare to repo.isEmpty #5629 (#5714)
* Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
Diffstat (limited to 'modules/context/api.go')
-rw-r--r--modules/context/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/api.go b/modules/context/api.go
index 6a9c792370..b27ffcbc8c 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -124,7 +124,7 @@ func APIContexter() macaron.Handler {
func ReferencesGitRepo() macaron.Handler {
return func(ctx *APIContext) {
// Empty repository does not have reference information.
- if ctx.Repo.Repository.IsBare {
+ if ctx.Repo.Repository.IsEmpty {
return
}