summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-12-12 21:06:25 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-12-13 13:06:25 +0800
commit0b77dbc11c6e8fbda79766dd578d2e1735228c4d (patch)
tree050ef222bee2c78b6d714e6466f4ad11616ead67 /modules/context
parente693fda325b1a7639ffb18d41f38a9b7ee2d03f9 (diff)
downloadgitea-0b77dbc11c6e8fbda79766dd578d2e1735228c4d.tar.gz
gitea-0b77dbc11c6e8fbda79766dd578d2e1735228c4d.zip
Fix new pull request link (#3133)
* Fix new pull request link * Only show button for branches
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/repo.go1
1 files changed, 0 insertions, 1 deletions
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)) {