diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-16 16:29:31 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2015-12-16 16:34:03 -0200 |
commit | 9c266d49354e9f7f86c76b00fbe800912f475153 (patch) | |
tree | a7c5294321d441d7a9fb254453e74588642fee33 /app/views/projects/branches | |
parent | 76642d7a805e572ddd7608efa4f6f33de42fa1ce (diff) | |
download | gitlab-ce-9c266d49354e9f7f86c76b00fbe800912f475153.tar.gz |
Add more descriptive error message when create branch with invalid name
Diffstat (limited to 'app/views/projects/branches')
-rw-r--r-- | app/views/projects/branches/new.html.haml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/projects/branches/new.html.haml b/app/views/projects/branches/new.html.haml index 31943a2407a..4e94f2a5ea2 100644 --- a/app/views/projects/branches/new.html.haml +++ b/app/views/projects/branches/new.html.haml @@ -14,6 +14,7 @@ = label_tag :branch_name, nil, class: 'control-label' .col-sm-10 = text_field_tag :branch_name, params[:branch_name], required: true, tabindex: 1, autofocus: true, class: 'form-control' + .help-block Can't contains space, '~', '^', ':', '?', '*', '[', '\', '..', '@{', and consecutive slashes, start with '/' or '.' or end in '/' or '.' or '.lock' .form-group = label_tag :ref, 'Create from', class: 'control-label' .col-sm-10 |