pookey: fixed odd svn problem, jepso, please sort out escaping :P
This commit is contained in:
parent
e4f2082a45
commit
f2e9b3ae36
@ -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];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user