mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:11:10 +08:00
chuck git version at the bottom of the page
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user