aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/pull.go
diff options
context:
space:
mode:
authorAchilleas Koutsou <achilleas.k@gmail.com>2020-09-03 21:04:22 +0200
committerGitHub <noreply@github.com>2020-09-04 03:04:22 +0800
commitc4360747a3bdd0d5a5a673bfcdee05f9d911ba1e (patch)
tree4c8ca23dc3f449bc946b6c75c0fec8dd928dbb73 /internal/route/repo/pull.go
parent23ff182d1f8df2978785772bc58cf0ebfd2aeb0c (diff)
repo: support unlisted but publicly accessible repositories (#6176)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'internal/route/repo/pull.go')
-rw-r--r--internal/route/repo/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/route/repo/pull.go b/internal/route/repo/pull.go
index e1778275..05837ca1 100644
--- a/internal/route/repo/pull.go
+++ b/internal/route/repo/pull.go
@@ -60,6 +60,7 @@ func parseBaseRepository(c *context.Context) *db.Repository {
c.Data["repo_name"] = baseRepo.Name
c.Data["description"] = baseRepo.Description
c.Data["IsPrivate"] = baseRepo.IsPrivate
+ c.Data["IsUnlisted"] = baseRepo.IsUnlisted
if err = baseRepo.GetOwner(); err != nil {
c.Error(err, "get owner")