composer/composer — pull request #487 by mheleniak (2012-03-21 23:53:07+00:00)
Title: correct working directory for cli commands, fixes #482

Currently commands in GitDriver are executed like this:

cd "C:\Users\matt\AppData\Local\Temp\/composer--some-repo-url/" && git show "master":composer.json

which internally generates errors e.g.:

fatal: Path 'composer.json' exists on disk, but not in 'master'.

and as a consequence results in:

Installing dependencies
Your requirements could not be solved to an installable set of packages.
Problems:
*The requested package "vendor/other-private-bundle" with constraint [] could not be found.*

This PR fixes the issue. More details in #482.