You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2022/04/19 13:45:18 UTC

[whimsy] branch master updated: Make sure we are in the right place

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 abad4ea1 Make sure we are in the right place
abad4ea1 is described below

commit abad4ea13979a6e488954f3c89169bad0889d50f
Author: Sebb <se...@apache.org>
AuthorDate: Tue Apr 19 14:45:11 2022 +0100

    Make sure we are in the right place
---
 www/test.cgi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/test.cgi b/www/test.cgi
index ca627228..9a0696da 100755
--- a/www/test.cgi
+++ b/www/test.cgi
@@ -50,8 +50,8 @@ 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')
-    puts_system('git', 'show', '--format="%h,  %ci %cr"', '-s', 'HEAD')
-    puts_system('git', 'ls-remote', 'origin', 'master')
+    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
     if wait > 0
       print "\nWaiting #{wait} seconds ..."