diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2017-06-21 14:16:38 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-21 14:16:38 +0300 |
commit | 5eb940da76193524bd81d006fee9f7971c750ec0 (patch) | |
tree | 48febd53a6b70681d80c2eb1457eaa7297873cb7 /db/fixtures/development | |
parent | 6a3da45a22165f2f71c023e0656ff07820a1e60e (diff) |
Replace invalid chars while seeding environments
Diffstat (limited to 'db/fixtures/development')
-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 ) |