This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 1f5b1da2 Try to fix missing git status
1f5b1da2 is described below
commit 1f5b1da2c516330f372bc1ead0296b74fad41583
Author: Sebb <[email protected]>
AuthorDate: Tue Apr 19 17:54:17 2022 +0100
Try to fix missing git status
---
www/status/index.cgi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/www/status/index.cgi b/www/status/index.cgi
index 5323d7cc..832c1d61 100755
--- a/www/status/index.cgi
+++ b/www/status/index.cgi
@@ -28,6 +28,8 @@ else
end
print "Status: #{summary_status}\r\n\r\n"
+ENV['HOME'] = '/var/www' # TODO should be set by httpd server?
+
git_info = `git show --format="%h %ci %cr" -s HEAD`.strip rescue "?"
# TODO better format; don't assume we use master
git_repo = `git ls-remote origin master`.strip rescue "?"