Fix new pull request link (#3133)
* Fix new pull request link * Only show button for branches
This commit is contained in:
parent
e693fda325
commit
0b77dbc11c
2 changed files with 2 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue