GitPython: Progress not showing up before the last second
I’ve implemented the Progress class to implement a nice progress bar:
I’m then using it, for example here:
And then, when I clone a very large repository (like mozilla’s gecko):
% git hub clone mozilla/gecko-dev
Pulling from github |████████████████████████████████|
Successfully cloned `https://github.com/guyzmo/git-repo` into `./git-repo`!
the progress bar is “progressing” (i.e. incrementing from 0 to 100%), but it shows up only at the very end of the fetching, after hanging for a long while. I started to debug it, and it looks like it’s related to subprocess stuff.
Though, I might be implementing it wrong, which is why I’m asking here while I’m still debugging that issue.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 35 (34 by maintainers)
Commits related to this issue
- fix(remote): use universal_newlines for fetch/push That way, real-time parsing of output should finally be possible. Related to #444 — committed to gitpython-developers/GitPython by Byron 8 years ago
- fix(remote): py3 compatibility Related to #444 — committed to gitpython-developers/GitPython by Byron 8 years ago
- Changing warning to debug logging, to avoid warning showing off when nothing's wrong cf #444 Signed-off-by: Guyzmo <guyzmo+github@m0g.net> — committed to guyzmo/GitPython by guyzmo 8 years ago
- Changing warning to debug logging, to avoid warning showing off when nothing's wrong cf #444 Signed-off-by: Guyzmo <guyzmo+github@m0g.net> — committed to guyzmo/GitPython by guyzmo 8 years ago
I think this is fixed now: https://github.com/gitpython-developers/GitPython/blob/902679c47c3d1238833ac9c9fdbc7c0ddbedf509/git/remote.py#L553 .