diff mbox series

[v2,6/7] bundle-uri: enable git-remote-https progress

Message ID 20250219-toon-bundleuri-progress-v2-6-a84e7ffa921a@iotcl.com (mailing list archive)
State New
Headers show
Series Show progress when downloading from bundle URIs | expand

Commit Message

Toon Claes Feb. 19, 2025, 2:30 p.m. UTC
When using bundle URIs large files might get downloaded during clone.
During that time, there's no feedback to the user what is happening.

Enable HTTP download progress for bundle URIs to inform the user.

Signed-off-by: Toon Claes <toon@iotcl.com>
---
 bundle-uri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bundle-uri.c b/bundle-uri.c
index 744257c49c..0ef96cd00f 100644
--- a/bundle-uri.c
+++ b/bundle-uri.c
@@ -298,7 +298,6 @@  static int download_https_uri_to_file(const char *file, const char *uri)
 	int found_get = 0;
 
 	strvec_pushl(&cp.args, "git-remote-https", uri, NULL);
-	cp.err = -1;
 	cp.in = -1;
 	cp.out = -1;
 
@@ -333,6 +332,7 @@  static int download_https_uri_to_file(const char *file, const char *uri)
 		goto cleanup;
 	}
 
+	fprintf(child_in, "option progress true\n");
 	fprintf(child_in, "get %s %s\n\n", uri, file);
 
 cleanup: