From 8dd6b052ce3ba86cd31894e139275a6490b360e6 Mon Sep 17 00:00:00 2001 From: schmkr Date: Tue, 15 Apr 2014 23:56:45 +0200 Subject: [PATCH] Updating SvnDriver trunk revision check Not checking revision of composer.json, but from its parent directory. See composer/composer#2849 --- src/Composer/Repository/Vcs/SvnDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 716f5a14d..506c176b8 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -207,7 +207,7 @@ class SvnDriver extends VcsDriver foreach ($this->process->splitLines($output) as $line) { $line = trim($line); if ($line && preg_match('{^\s*(\S+).*?(\S+)\s*$}', $line, $match)) { - if (isset($match[1]) && isset($match[2]) && $match[2] === 'composer.json') { + if (isset($match[1]) && isset($match[2]) && $match[2] === './') { $this->branches['trunk'] = $this->buildIdentifier( '/' . $this->trunkPath, $match[1]