summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-02-15 12:41:12 -0500
committerRobert Speicher <rspeicher@gmail.com>2016-02-17 14:05:58 -0500
commit6c9ae675b5a7c93ecc67afc4c2f147dd947d9c7e (patch)
treefeb7245dff6e92cad92d6d2a2f5bedbef9fb085e /config
parentff28ac9c18231c54b9a925d26915bf3e29548ddd (diff)
downloadgitlab-ce-6c9ae675b5a7c93ecc67afc4c2f147dd947d9c7e.tar.gz
Add release tracking for Sentryrs-sentry-release-tracking
Diffstat (limited to 'config')
-rw-r--r--config/initializers/2_app.rb4
-rw-r--r--config/initializers/sentry.rb1
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