Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Stephan Beal
On Thu, Jun 14, 2012 at 6:27 AM, John Found johnfo...@evrocom.net wrote: - HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1 HTTP_HOST=asm32.hopto.org SERVER_PORT=80 removed for

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Richard Hipp
On Thu, Jun 14, 2012 at 12:27 AM, John Found johnfo...@evrocom.net wrote: On Wed, 13 Jun 2012 22:47:26 +0200 Rene renew...@xs4all.nl wrote: You could make a second cgi script that will do a checkout. and after a commit do http://yoursever/checkout.cgi It has the added benefit that

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Stephan Beal
On Thu, Jun 14, 2012 at 12:42 PM, John Found johnfo...@evrocom.net wrote: The script work, in its current state can be seen on: http://asm32.hopto.org/update.cgi What happens if you remove the 'env' line? Also, just for kicks, please try: export GATEWAY_INTERFACE SCRIPT_FILENAME REQUEST_URI

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread John Found
On Thu, 14 Jun 2012 13:14:03 +0200 Stephan Beal sgb...@googlemail.com wrote: What happens if you remove the 'env' line? Also, just for kicks, please try: export GATEWAY_INTERFACE SCRIPT_FILENAME REQUEST_URI HTTP_USER_AGENT REQUEST_METHOD before calling fossil. i don't know off-hand

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Stephan Beal
On Thu, Jun 14, 2012 at 1:42 PM, John Found johnfo...@evrocom.net wrote: The script returns empty (but valid) web page (containing only the echoed HTML tags) in both variants, with or without export command. I made another script for this variant: http://asm32.hopto.org/update_short.cgi

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread John Found
On Thu, 14 Jun 2012 14:49:42 +0200 Stephan Beal sgb...@googlemail.com wrote: And here's a dumb question, but i've had this problem before: on my hoster HTML pages are served as some www-user but CGI apps are run as my account. My point is, the user is not always who we expect and this has

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Stephan Beal
On Thu, Jun 14, 2012 at 3:31 PM, John Found johnfo...@evrocom.net wrote: But I guessed to redirect STDERR to STDOUT and got fossil: not within an open checkout. But PWD returns the proper directory where is the checkout, so the problem is with bash. How to set fossil to run in the current

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Stephan Beal
On Thu, Jun 14, 2012 at 9:42 PM, John Found johnfo...@evrocom.net wrote: On Thu, 14 Jun 2012 20:36:23 +0200 Stephan Beal sgb...@googlemail.com wrote: Looking at your last script, everything looks fine to me. i'm out of ideas :/. And what is really weird, the equivalent windows .cmd file

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Brian Smith
On Thu, Jun 14, 2012 at 12:46 PM, Stephan Beal sgb...@googlemail.comwrote: On Thu, Jun 14, 2012 at 9:42 PM, John Found johnfo...@evrocom.net wrote: On Thu, 14 Jun 2012 20:36:23 +0200 Stephan Beal sgb...@googlemail.com wrote: Looking at your last script, everything looks fine to me. i'm out

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Brian Smith
On Thu, Jun 14, 2012 at 1:55 PM, John Found johnfo...@evrocom.net wrote: On Thu, 14 Jun 2012 13:01:23 -0700 Brian Smith br...@linuxfood.net wrote: If I may chime in - if you do not need the updates to be _instantaneous_ upon push... A cronjob scheduled to run once a minute and simply run

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread John Found
On Thu, 14 Jun 2012 14:42:48 -0700 Brian Smith br...@linuxfood.net wrote: I had success with this line to execute fossil: /usr/bin/env -i HOME=$(pwd) /usr/local/bin/fossil ls 21 It runs fossil with the same success as the simple fossil ls --nocgi - not within an open checkout 4) env -i

Re: [fossil-users] Update of checkout after push operations.

2012-06-14 Thread Brian Smith
On Thu, Jun 14, 2012 at 3:06 PM, John Found johnfo...@evrocom.net wrote: On Thu, 14 Jun 2012 14:42:48 -0700 Brian Smith br...@linuxfood.net wrote: I had success with this line to execute fossil: /usr/bin/env -i HOME=$(pwd) /usr/local/bin/fossil ls 21 It runs fossil with the same success

Re: [fossil-users] Update of checkout after push operations.

2012-06-13 Thread Ron Wilson
On Thu, Jun 7, 2012 at 5:54 PM, John Found johnfo...@evrocom.net wrote: I have one central repository, that I use as an archive for a web site. The web site root directory is actually checkout of the trunk branch of the repository. I am using lighttpd server on Linux and fossil as a CGI

Re: [fossil-users] Update of checkout after push operations.

2012-06-13 Thread Rene
On 2012-06-13 19:07, Ron Wilson wrote: On Thu, Jun 7, 2012 at 5:54 PM, John Found johnfo...@evrocom.net wrote: I have one central repository, that I use as an archive for a web site. The web site root directory is actually checkout of the trunk branch of the repository. I am using lighttpd

Re: [fossil-users] Update of checkout after push operations.

2012-06-13 Thread Rene
On 2012-06-13 19:07, Ron Wilson wrote: On Thu, Jun 7, 2012 at 5:54 PM, John Found johnfo...@evrocom.net wrote: I have one central repository, that I use as an archive for a web site. The web site root directory is actually checkout of the trunk branch of the repository. I am using lighttpd

[fossil-users] Update of checkout after push operations.

2012-06-07 Thread John Found
I have one central repository, that I use as an archive for a web site. The web site root directory is actually checkout of the trunk branch of the repository. I am using lighttpd server on Linux and fossil as a CGI script in very standard manner. So, I need when I make a push (or commit with