I'm trying to get the progress of git clone without success.
I tried with git clone --progress <path> 2>stderr.txt
but it only returns:
Cloning into 'project-name'...
done.
The output that I need would be something like:
Progress: 1/100
Progress: 2/100
Progress: 3/100
My git version is 2.21.0.windows.1
Edit:
I'm calling git clone
from NodeJS using child_process
with the following code:
let cloneSpawn = spawn("git", ["clone", "--progress", path], {shell: true});
cloneSpawn.stderr.on("data", d => {
console.log(d.toString());
});