diff options
author | J. Daniel Schmidt <jdsn@suse.de> | 2015-04-08 10:51:36 +0200 |
---|---|---|
committer | J. Daniel Schmidt <jdsn@suse.de> | 2015-04-08 10:51:36 +0200 |
commit | 2794e57beb47677e51a40935dd59f7793de5ae85 (patch) | |
tree | 85491ae5123711291987ef32c6c57535b3a883ae /app/models/namespace.rb | |
parent | 4cf25eea3abd7e0928d6a87f33bf98d89b1bc2e8 (diff) | |
download | gitlab-ce-2794e57beb47677e51a40935dd59f7793de5ae85.tar.gz |
clean_path should not drop the last character
Fixes https://github.com/gitlabhq/gitlabhq/issues/9098
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index dd74165f887..fcce8b46dfe 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -62,7 +62,7 @@ class Namespace < ActiveRecord::Base path.gsub!(/@.*\z/, "") path.gsub!(/\.git\z/, "") path.gsub!(/\A-/, "") - path.gsub!(/.\z/, "") + path.gsub!(/\.\z/, "") path.gsub!(/[^a-zA-Z0-9_\-\.]/, "") counter = 0 |