summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-08 16:42:10 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-08 16:42:10 +0100
commitdf6750d3d6b562c8a6a0a57c12dfd694da38a0e8 (patch)
tree54f15d83ddef9b524144cf6c49385b5e98c96509 /app/views/shared
parent792f2bbe0b306bda266dfc817edf33b4c9e36a0f (diff)
downloadgitlab-ce-df6750d3d6b562c8a6a0a57c12dfd694da38a0e8.tar.gz
Default target branch to patch-n when editing file in protected branch
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/_new_commit_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/_new_commit_form.html.haml b/app/views/shared/_new_commit_form.html.haml
index 31b02ed93d0..074080e44c9 100644
--- a/app/views/shared/_new_commit_form.html.haml
+++ b/app/views/shared/_new_commit_form.html.haml
@@ -4,7 +4,7 @@
.form-group.branch
= label_tag 'new_branch', 'Target branch', class: 'control-label'
.col-sm-10
- = text_field_tag 'new_branch', @new_branch || @ref, required: true, class: "form-control js-new-branch"
+ = text_field_tag 'new_branch', @new_branch || tree_edit_branch, required: true, class: "form-control js-new-branch"
.form-group.js-create-merge-request-form-group
.col-sm-offset-2.col-sm-10