Commit f2e9b3ae authored by pookey's avatar pookey

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

parent e4f2082a
......@@ -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];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment