gitlab-org--gitlab-foss/config/initializers/2_app.rb
2016-02-17 14:05:58 -05:00

8 lines
228 B
Ruby

module Gitlab
def self.config
Settings
end
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