Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2017-06-21 14:16:38 +0300
committerGrzegorz Bizon <grzegorz@gitlab.com>2017-06-21 14:16:38 +0300
commit5eb940da76193524bd81d006fee9f7971c750ec0 (patch)
tree48febd53a6b70681d80c2eb1457eaa7297873cb7 /db
parent6a3da45a22165f2f71c023e0656ff07820a1e60e (diff)
Replace invalid chars while seeding environments
Diffstat (limited to 'db')
-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
)