Skip to content

Commit

Permalink
Try using progress handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Feb 17, 2021
1 parent 8518303 commit 37ccf2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/env/lib/download-sources.js
Expand Up @@ -105,8 +105,12 @@ async function downloadGitSource( source, { onProgress, spinner, debug } ) {
: () => {};
onProgress( 0 );

const progressHandler = ( { progress } ) => {
onProgress( progress / 100 );
};

log( 'Cloning or getting the repo.' );
const git = SimpleGit();
const git = SimpleGit( { progress: progressHandler } );

const isRepo =
fs.existsSync( source.clonePath ) &&
Expand Down

0 comments on commit 37ccf2a

Please sign in to comment.