diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index ebe5858..3afc607 100644 --- a/app/views/projects/edit.html.haml +++ b/app/views/projects/edit.html.haml @@ -144,7 +144,9 @@ %span Path .controls .control-group - = f.text_field :path + .input-append + = f.text_field :path + %span.add-on .git %ul %li Be careful. Renaming a project's repository can have unintended side effects. %li You will need to update your local repositories to point to the new location. diff --git a/lib/gitlab/regex.rb b/lib/gitlab/regex.rb index 55aa240..eb6b91e 100644 --- a/lib/gitlab/regex.rb +++ b/lib/gitlab/regex.rb @@ -44,7 +44,7 @@ module Gitlab protected def default_regex - /\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*\z/ + /\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?