Commit cc1f7ea2 authored by Jeroen van Baarsen's avatar Jeroen van Baarsen

Allow . files to be created

Fixes: https://github.com/gitlabhq/gitlabhq/issues/5770
parent 71f1a845
......@@ -49,7 +49,7 @@ module Gitlab
protected
def default_regex
/\A[a-zA-Z0-9][a-zA-Z0-9_\-\.]*(?<!\.git)\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