diff options
-rw-r--r-- | app/views/projects/edit.html.haml | 4 | ||||
-rw-r--r-- | lib/gitlab/regex.rb | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/edit.html.haml b/app/views/projects/edit.html.haml index ebe58581533..3afc607d90f 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 55aa240a9f9..eb6b91e26b5 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_\-\.]*(?<!\.git)\z/ end end end |