Commit 9c9e389eb36415d669578add847ae3d2f639f99c:
Show local git code info
Branch: refs/heads/master
Author: Sebb <[email protected]>
Committer: Sebb <[email protected]>
Pusher: sebb <[email protected]>
------------------------------------------------------------
www/status/index.cgi | ++
------------------------------------------------------------
2 changes: 2 additions, 0 deletions.
------------------------------------------------------------
diff --git a/www/status/index.cgi b/www/status/index.cgi
index 8b643bc..040b111 100755
--- a/www/status/index.cgi
+++ b/www/status/index.cgi
@@ -4,6 +4,7 @@ require 'time'
json = File.expand_path('../status.json', __FILE__)
status = JSON.parse(File.read(json)) rescue {}
+git_info = `git show --format="%h %ci" -s HEAD`.strip rescue "?"
# Get new status every minute
if not status['mtime'] or Time.now - Time.parse(status['mtime']) > 60
@@ -62,6 +63,7 @@ print <<-EOF
<ul>
<li><a href="passenger">Passenger</a> (ASF committer only)</li>
<li><a href="svn">Subversion</a></li>
+ <li>Git code info: #{git_info}</li>
</ul>
</body>
</html>