[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit from web problem

From: Andy Levy <andy.levy_at_gmail.com>
Date: 2007-05-09 16:33:52 CEST

On 5/9/07, Emre Uslu <emreu@ayesas.com> wrote:
> I am trying to commit a file from a web application written with php. It
> failed and returned nothing. When failed, i've created a php file having
> only shell_exec command but it also failed. The script trying to commit is
> simply using shell_exec command as follows:
>
> $test = shell_exec('svn commit –m "Test" abc.txt');
>
> echo $test;
>
> I've tried shell_exec('svn status') and it worked correctly (also any other
> -dos etc..- commands) but svn commands like "log, update, checkout, commit"
> don't work.

Is the current directory that the PHP script is working in a working copy?

You may be best off using absolute paths in this case, so that there's
no confusion in PHP as far as which directory you're working in.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed May 9 16:34:11 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.