summaryrefslogtreecommitdiff
path: root/app/controllers/concerns/creates_commit.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-01-21 22:46:49 +0100
committerDouwe Maan <douwe@selenight.nl>2016-01-21 22:46:49 +0100
commit9369b7ec1f98f8e94a0483e4fbb8c36c2333d60b (patch)
treebf73f8507ded979b7d7ba60c78c10e2d54628056 /app/controllers/concerns/creates_commit.rb
parent3f7993b5ceb9c5ba616dffef39f9b535482d92c1 (diff)
downloadgitlab-ce-9369b7ec1f98f8e94a0483e4fbb8c36c2333d60b.tar.gz
Fix MR diff 'Edit' buttonfix-mr-diff-edit-button
Diffstat (limited to 'app/controllers/concerns/creates_commit.rb')
-rw-r--r--app/controllers/concerns/creates_commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/concerns/creates_commit.rb b/app/controllers/concerns/creates_commit.rb
index 62127a09081..b9eb0a22f88 100644
--- a/app/controllers/concerns/creates_commit.rb
+++ b/app/controllers/concerns/creates_commit.rb
@@ -97,7 +97,7 @@ module CreatesCommit
# Merge request from fork to this project
@mr_source_project = @tree_edit_project
@mr_target_project = @project
- @mr_target_branch = @mr_target_project.repository.root_ref
+ @mr_target_branch = @ref
end
end
end