1
0
Fork 0

Fix regex

pull/315/merge
Jordi Boggiano 2012-02-18 16:03:35 +01:00
parent 8aa0127de8
commit a28fa790be
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ class GitDriver extends VcsDriver implements VcsDriverInterface
} }
// local filesystem // local filesystem
if (preg_match('{^(file://|/|[a-z]:[\\\\/])}', $url)) { if (preg_match('{^(file://|/|[a-z]:[\\\\/])}i', $url)) {
$process = new ProcessExecutor(); $process = new ProcessExecutor();
// check whether there is a git repo in that path // check whether there is a git repo in that path
if ($process->execute(sprintf('cd %s && git show', escapeshellarg($url)), $output) === 0) { if ($process->execute(sprintf('cd %s && git show', escapeshellarg($url)), $output) === 0) {