diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-02-25 12:12:09 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2014-03-03 08:40:29 +0100 |
commit | 2b816075dc71dfe8f6f9e5349fdff7f03ad9dad0 (patch) | |
tree | 876e04b4c1a0d844fa1b1f023fd075ba521495ab /config | |
parent | a9dcfd851f80c35522ac844b316af783d0db7e64 (diff) | |
download | gitlab-ce-2b816075dc71dfe8f6f9e5349fdff7f03ad9dad0.tar.gz |
Replace backticks with Gitlab::Popen
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/2_app.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/2_app.rb b/config/initializers/2_app.rb index e2f98002347..655590dff0b 100644 --- a/config/initializers/2_app.rb +++ b/config/initializers/2_app.rb @@ -1,6 +1,6 @@ module Gitlab VERSION = File.read(Rails.root.join("VERSION")).strip - REVISION = `git log --pretty=format:'%h' -n 1` + REVISION = Gitlab::Popen.popen(%W(git log --pretty=format:%h -n 1)).first.chomp def self.config Settings |