1
0
mirror of synced 2025-01-18 06:21:40 +03:00

pookey: fixed odd svn problem, jepso, please sort out escaping :P

This commit is contained in:
pookey 2007-09-01 23:14:07 +00:00
parent e4f2082a45
commit f2e9b3ae36

View File

@ -56,8 +56,8 @@ function autoload($class)
*/ */
function getSvnRevision($file) function getSvnRevision($file)
{ {
exec('svn info ' . $file, $output); $cmd = 'HOME=/tmp /usr/bin/svn info ' . $file;
exec($cmd, $output);
foreach ($output as $line) { foreach ($output as $line) {
if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) { if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) {
return $matches[1]; return $matches[1];