Welcome to mirror list, hosted at ThFree Co, Russian Federation.

2_app.rb « initializers « config - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d43239f7d354d8e1d7ac46179fc8c0f0c296deb (plain)
1
2
3
4
5
6
7
8
9
10
require_dependency 'gitlab/popen'

module Gitlab
  def self.config
    Settings
  end

  VERSION  = File.read(Gitlab.root.join("VERSION")).strip.freeze
  REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp.freeze
end