diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-24 09:57:54 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-24 10:14:01 +0200 |
commit | d50a80a282b2ca145841774f4be154a977cccfd8 (patch) | |
tree | b8b44017967ecb99196ec5cfcf4b827af0af1b8a /config/initializers/sentry.rb | |
parent | c52db71e36ee70c4c5be80b029cf4362f28e3667 (diff) | |
download | gitlab-ce-d50a80a282b2ca145841774f4be154a977cccfd8.tar.gz |
Replace Gitlab::REVISION with Gitlab.revision and handle installations without a .git directory46600-fix-gitlab-revision-when-not-in-git-repo
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'config/initializers/sentry.rb')
-rw-r--r-- | config/initializers/sentry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/sentry.rb b/config/initializers/sentry.rb index b2da3b3dc19..17d09293205 100644 --- a/config/initializers/sentry.rb +++ b/config/initializers/sentry.rb @@ -13,7 +13,7 @@ def configure_sentry if sentry_enabled Raven.configure do |config| config.dsn = Gitlab::CurrentSettings.current_application_settings.sentry_dsn - config.release = Gitlab::REVISION + config.release = Gitlab.revision # Sanitize fields based on those sanitized from Rails. config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s) |