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 4ffec593 This might fix it
4ffec593 is described below

commit 4ffec593680b59d6001caee438b7615947bf7e07
Author: Sebb <[email protected]>
AuthorDate: Tue Apr 19 17:38:01 2022 +0100

    This might fix it
---
 www/test.cgi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/www/test.cgi b/www/test.cgi
index 9a0696da..adb244d3 100755
--- a/www/test.cgi
+++ b/www/test.cgi
@@ -50,6 +50,7 @@ if query and not query.empty? and ENV['SCRIPT_URL'] == 
'/test.cgi'
     puts_system('which', '-a',  'gem')
     puts_system('PATH=/usr/local/bin:$PATH which -a gem')
     puts_system('service', 'puppet', 'status')
+    ENV['HOME'] = `getent passwd www-data`.split(':')[5] # HOME is needed for 
Git to work
     puts_system('git', '-C', '/srv/whimsy', 'show', '--format="%h,  %ci %cr"', 
'-s', 'HEAD')
     puts_system('git', '-C', '/srv/whimsy', 'ls-remote', 'origin', 'master')
     wait=query.match(/^sleep=(\d+)$/)[1].to_i rescue 0

Reply via email to