mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
chuck git version at the bottom of the page
This commit is contained in:
parent
87b929eac6
commit
d9a84ddd01
|
@ -58,5 +58,6 @@
|
|||
<%= render :partial => "common/discourse_javascript" %>
|
||||
<%= render_google_analytics_code %>
|
||||
|
||||
<!-- Git Version: <%= $git_version %> -->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -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…
Reference in New Issue
Block a user