diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-06-21 11:16:38 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-21 11:16:38 +0000 |
commit | 5eb940da76193524bd81d006fee9f7971c750ec0 (patch) | |
tree | 48febd53a6b70681d80c2eb1457eaa7297873cb7 /db/fixtures | |
parent | 6a3da45a22165f2f71c023e0656ff07820a1e60e (diff) | |
download | gitlab-ce-5eb940da76193524bd81d006fee9f7971c750ec0.tar.gz |
Replace invalid chars while seeding environments
Diffstat (limited to 'db/fixtures')
-rw-r--r-- | db/fixtures/development/19_environments.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/fixtures/development/19_environments.rb b/db/fixtures/development/19_environments.rb index 93214b9d3e7..c1bbc9af6d6 100644 --- a/db/fixtures/development/19_environments.rb +++ b/db/fixtures/development/19_environments.rb @@ -33,7 +33,7 @@ class Gitlab::Seeder::Environments create_deployment!( merge_request.source_project, - "review/#{merge_request.source_branch}", + "review/#{merge_request.source_branch.gsub(/[^a-zA-Z0-9]/, '')}", merge_request.source_branch, merge_request.diff_head_sha ) |