File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -332,13 +332,11 @@ func RepoAssignment() macaron.Handler {
332
332
if ctx .Repo .IsWriter () || (ctx .IsSigned && ctx .User .HasForkedRepo (ctx .Repo .Repository .ID )) {
333
333
// Pull request is allowed if this is a fork repository
334
334
// and base repository accepts pull requests.
335
- if repo .BaseRepo != nil {
336
- if repo .BaseRepo .AllowsPulls () {
337
- ctx .Data ["BaseRepo" ] = repo .BaseRepo
338
- ctx .Repo .PullRequest .BaseRepo = repo .BaseRepo
339
- ctx .Repo .PullRequest .Allowed = true
340
- ctx .Repo .PullRequest .HeadInfo = ctx .Repo .Owner .Name + ":" + ctx .Repo .BranchName
341
- }
335
+ if repo .BaseRepo != nil && repo .BaseRepo .AllowsPulls () {
336
+ ctx .Data ["BaseRepo" ] = repo .BaseRepo
337
+ ctx .Repo .PullRequest .BaseRepo = repo .BaseRepo
338
+ ctx .Repo .PullRequest .Allowed = true
339
+ ctx .Repo .PullRequest .HeadInfo = ctx .Repo .Owner .Name + ":" + ctx .Repo .BranchName
342
340
} else {
343
341
// Or, this is repository accepts pull requests between branches.
344
342
if repo .AllowsPulls () {
You can’t perform that action at this time.
0 commit comments