pookey: fixed odd svn problem, jepso, please sort out escaping :P
This commit is contained in:
parent
e4f2082a45
commit
f2e9b3ae36
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue