1
0
mirror of synced 2025-01-17 22:11:41 +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)
{
exec('svn info ' . $file, $output);
$cmd = 'HOME=/tmp /usr/bin/svn info ' . $file;
exec($cmd, $output);
foreach ($output as $line) {
if (preg_match('/^Last Changed Rev: ([0-9]+)$/', $line, $matches)) {
return $matches[1];