Skip to content

Commit

Permalink
Merge pull request #110 from wp-cli/fix/use-correct-src-folder
Browse files Browse the repository at this point in the history
Use correct `$src` folder for local Composer repository
  • Loading branch information
schlessera authored Mar 4, 2021
2 parents 425513c + 731dcf3 commit f288c72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Context/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -930,9 +930,9 @@ public function composer_add_wp_cli_local_repository() {
mkdir( self::$composer_local_repository );

$env = self::get_process_env_variables();
$src = isset( $env['TRAVIS_BUILD_DIR'] ) ? $env['TRAVIS_BUILD_DIR'] : realpath(
__DIR__ . '/../../wp-cli-tests/'
);
$src = isset( $env['TRAVIS_BUILD_DIR'] )
? $env['TRAVIS_BUILD_DIR']
: realpath( self::get_vendor_dir() . '/../' );

self::copy_dir( $src, self::$composer_local_repository . '/' );
self::remove_dir( self::$composer_local_repository . '/.git' );
Expand Down

0 comments on commit f288c72

Please sign in to comment.