[PATCH 4/4] bundle-uri: enable git-remote-https progress

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 bundle-uri.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bundle-uri.c b/bundle-uri.c
index ca32050a78..462f00f668 100644
--- a/bundle-uri.c
+++ b/bundle-uri.c
@@ -293,7 +293,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;
 
@@ -328,6 +327,9 @@ static int download_https_uri_to_file(const char *file, const char *uri)
 		goto cleanup;
 	}
 
+	fprintf(child_in, "option progress true\n");
+	fflush(child_in);
+
 	fprintf(child_in, "get %s %s\n\n", uri, file);
 
 cleanup:
-- 
2.44.0.651.g21306a098c





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux