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

@ -58,5 +58,6 @@
<%= render :partial => "common/discourse_javascript" %>
<%= render_google_analytics_code %>
<!-- Git Version: <%= $git_version %> -->
</body>
</html>

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