diff options
| -rw-r--r-- | app/models/ci/build.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 1dc5035605c..259d29e84d1 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -173,8 +173,8 @@ module Ci # * First/Last Character is not a hyphen def ref_slug slugified = ref.to_s.downcase - slugified = slugified.gsub(/[^a-z0-9]/, '-')[0..62] - slugified.gsub(/(\A-+|-+\z)/, '') + slugified.gsub!(/[^a-z0-9]/, '-') + slugified[0..62].gsub(/(\A-+|-+\z)/, '') end # Variables whose value does not depend on other variables |
