Unverified Commit 64edb27a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Extend Gitlab#default_regex. Dont allow project path ends with .git


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 213f203b3dad
......@@ -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.
......
......@@ -44,7 +44,7 @@ def git_reference_regex
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment