Skip to content

Commit

Permalink
Fix weird composer situation
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Mar 5, 2017
1 parent 342e8ae commit 574d37e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Autoconfig/AutoconfigGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,15 @@ private function resolve_config_weight(Package $package, array $fragment)
*/
protected function resolve_fragment($pathname)
{
#
# It seems `$pathname` can be empty when `composer install` is run for the first time,
# in which case we use the current directory.
#

if (!$pathname) {
$pathname = getcwd();
}

#
# Trying "extra/icanboogie" in "composer.json".
#
Expand Down

0 comments on commit 574d37e

Please sign in to comment.