Skip to content

Commit

Permalink
small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
noahtallen committed Feb 11, 2021
1 parent b55a2d3 commit ced18c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/env/lib/download-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function downloadGitSource( source, { onProgress, spinner, debug } ) {

const isRepo =
fs.existsSync( source.clonePath ) &&
( await git.cwd( source.clonePath ).checkIsRepo() );
( await git.cwd( source.clonePath ).checkIsRepo( 'root' ) );

if ( isRepo ) {
log( 'Repo already exists, using it.' );
Expand All @@ -123,8 +123,8 @@ async function downloadGitSource( source, { onProgress, spinner, debug } ) {
}

log( 'Fetching the specified ref.' );

await git.fetch( 'origin', source.ref );

log( 'Checking out the specified ref.' );
await git.checkout( source.ref );

Expand Down

0 comments on commit ced18c7

Please sign in to comment.