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:
parent
87b929eac6
commit
d9a84ddd01
2 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue