Skip to content

bundle-uri: show progress when downloading from bundle URIs

Toon Claes requested to merge toon-bundleuri-progress into master

When a user clones a repository, they see what's happening in the messages like "Enumerating objects" and "Receiving objects". But when a user clones a repository that uses bundle URIs they see:

Cloning into 'repo.git'

And then they have to wait until all bundles are downloaded before they see any other message. When the bundles are large, this can take a lot of time and the user might consider the process hangs and they kill it.

This patch series introduces progress displayed to the user while bundles are downloaded. The full output of a clone using bundle URIs will look something like:

Cloning into 'repo.git'...
Downloading via HTTP:  21% (351812809/1620086598), 315.34 MiB | 49.84 MiB/s
Downloading via HTTP:  77% (1247493865/1620086598), 1.15 GiB | 34.31 MiB/s
Downloading via HTTP: 100% (1620086598/1620086598), 1.50 GiB | 37.97 MiB/s, done.
remote: Enumerating objects: 1322255, done.
remote: Counting objects: 100% (611708/611708), done.
remote: Total 1322255 (delta 611708), reused 611708 (delta 611708), pack-reused 710547
Receiving objects: 100% (1322255/1322255), 539.66 MiB | 31.57 MiB/s, done.
etc...
Edited by Toon Claes

Merge request reports