optimize clone by allowing to fetch with a different depth

This commit is contained in:
grimhilt
2023-07-21 16:00:04 +02:00
parent 0832100d83
commit f01983b29d
4 changed files with 52 additions and 12 deletions

View File

@@ -123,7 +123,6 @@ impl Downloader {
// download
let res = {
if should_use_stream {
// todo should increment here
download.save_stream(ref_p.clone(), Some(|a| self.update_bytes_bar(a)))
} else {
download.save(ref_p.clone())