From 1ce419cc43bcd6fc8d0a9294f5ce9efb8104ece6 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 23 May 2014 18:55:44 +0200 Subject: [PATCH] Fix var name --- src/Composer/Util/Git.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Util/Git.php b/src/Composer/Util/Git.php index 0f61a53be..296aa548f 100644 --- a/src/Composer/Util/Git.php +++ b/src/Composer/Util/Git.php @@ -46,7 +46,7 @@ class Git if (!$initialClone) { // capture username/password from URL if there is one - $this->process->execute('git remote -v', $output, $path); + $this->process->execute('git remote -v', $output, $cwd); if (preg_match('{^(?:composer|origin)\s+https?://(.+):(.+)@([^/]+)}im', $output, $match)) { $this->io->setAuthentication($match[3], urldecode($match[1]), urldecode($match[2])); }