I am currently writing php files to a directory, I am adding this directory (works fine), and then when I try to make svn commit, it does not work and does not return any error codes. Does anyone know about this?
$tmp = exec('cd '.$this->build_locations[$this->type].'; svn commit --username user --password pw; ls', $output);
I do cd in the directory (where ls worked fine here), I do ls after that to confirm it is still in the directory.
I also tried:
svn help
which returns all the commands to me just fine (so I know this is not a problem without detecting the svn command.
I copied the 777 file to confirm its execution.
Edited Code:
$output = array();
$tmp1 = exec("cd ".$this->build_locations[$this->type].";");
$tmp = exec("svn commit ".$this->build_locations[$this->type].$this->app_id." --username user --password password -m 'test' --non-interactive --trust-server-cert --quiet 2>&1;", $output, $error);
if($error){
echo('<pre>');
print_r($output);
echo('</pre>');
}
exit;
This gives:
Array
[0] => could not lookup DNS configuration info service: (ipc/send) invalid destination port
[1] => svn: Commit failed (details follow):
[2] => svn: Unknown hostname 'my.host'
source
share