diff --git a/packages/env/lib/download-sources.js b/packages/env/lib/download-sources.js index a68eb7d344415c..3599d4e33ea033 100644 --- a/packages/env/lib/download-sources.js +++ b/packages/env/lib/download-sources.js @@ -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 ) &&