From 0b77dbc11c6e8fbda79766dd578d2e1735228c4d Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Tue, 12 Dec 2017 21:06:25 -0800 Subject: Fix new pull request link (#3133) * Fix new pull request link * Only show button for branches --- modules/context/repo.go | 1 - 1 file changed, 1 deletion(-) (limited to 'modules/context/repo.go') diff --git a/modules/context/repo.go b/modules/context/repo.go index 7651d43fad..a60f81b4d5 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -427,7 +427,6 @@ func RepoAssignment() macaron.Handler { return } } - ctx.Data["IsForkedRepo"] = repo.IsFork // People who have push access or have forked repository can propose a new pull request. if ctx.Repo.IsWriter() || (ctx.IsSigned && ctx.User.HasForkedRepo(ctx.Repo.Repository.ID)) { -- cgit v1.2.3