diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/2_app.rb | 4 | ||||
-rw-r--r-- | config/initializers/sentry.rb | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/config/initializers/2_app.rb b/config/initializers/2_app.rb index 35b150c9929..bd74f90e7d2 100644 --- a/config/initializers/2_app.rb +++ b/config/initializers/2_app.rb @@ -3,6 +3,6 @@ module Gitlab Settings end - VERSION = File.read(Rails.root.join("VERSION")).strip - REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp + VERSION = File.read(Rails.root.join("VERSION")).strip.freeze + REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp.freeze end diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index d0630b9fa07..e87899b2d5c 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -14,6 +14,7 @@ if Rails.env.production? if sentry_enabled Raven.configure do |config| config.dsn = current_application_settings.sentry_dsn + config.release = Gitlab::REVISION end end end |