2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-21 19:11:18 +08:00

chuck git version at the bottom of the page

This commit is contained in:
Sam Saffron 2013-02-18 17:39:54 +11:00
parent 87b929eac6
commit d9a84ddd01
2 changed files with 9 additions and 0 deletions

View file

@ -44,6 +44,14 @@ module Discourse
!!$redis.get( maintenance_mode_key )
end
def self.git_version
begin
$git_version ||= `git rev-parse HEAD`
rescue
$git_version = "unknown"
end
end
private