Closed roma-glushko closed 3 years ago
Progress flag seems to be helpful here:
$git = $gitWrapper->cloneRepository(
$projectRepository,
$destDir,
[
'depth' => '1',
'branch' => 'master',
'verbose' => true,
'progress' => true,
]
);
Now it's possible to follow the git clone progress:
Description I'm using
cpliakas/git-wrapper
to clone the repository. My code snippet is pretty much like this:I want to be able to clone my repos and show interactive output to show progress of execution as repos may be huge and it may take up to 1h to clone them even with
--depth 1 --branch master
params.Expected Result
I want to see all output that git clone command usually shows during git command execution (just a little part of it):
Actual Result
I see only "Cloning into 'tmp/cab'..." part of the output. The log file contains these records:
I also tried to use HTTPs link to the repo, but the result is the same.