summaryrefslogtreecommitdiff
path: root/db/fixtures
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2017-06-21 11:16:38 +0000
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-21 11:16:38 +0000
commit5eb940da76193524bd81d006fee9f7971c750ec0 (patch)
tree48febd53a6b70681d80c2eb1457eaa7297873cb7 /db/fixtures
parent6a3da45a22165f2f71c023e0656ff07820a1e60e (diff)
downloadgitlab-ce-5eb940da76193524bd81d006fee9f7971c750ec0.tar.gz
Replace invalid chars while seeding environments
Diffstat (limited to 'db/fixtures')
-rw-r--r--db/fixtures/development/19_environments.rb2
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
)