You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to display the progress of the download (clone_from) ? #1059
I am a new GitPython user and I would like to display a progress bar when cloning locally a large GitHub repository. To begin with, I have created a RemoteProgress based class and I have plugged it in the clone_from() function :
When I run it, I have well the progress from 0 to 100% of remote: Counting objects: and remote: Compressing objects: steps (which are super fast) but after that, nothing more : the terminal keep freezed until the end of the download.
How to catch the progress of the download itself ?
From what I could gather in the docs this is essentially what needs to be done, and that should include local progress (indexing, resolving) along with remote progress.
Maybe for some reason progress cannot be parsed, maybe override line_dropped(self, line) to learn about lines that couldn't be parsed.
Nonetheless, I would also expect that to work in a more straightforward fashion, maybe we can figure that out here.
Activity
Byron commentedon Sep 28, 2020
From what I could gather in the docs this is essentially what needs to be done, and that should include local progress (indexing, resolving) along with remote progress.
Maybe for some reason progress cannot be parsed, maybe override
line_dropped(self, line)to learn about lines that couldn't be parsed.Nonetheless, I would also expect that to work in a more straightforward fashion, maybe we can figure that out here.