Commit f79e64905fc5fe74a7dfa5a7b0af0f567b16ee8f

Stefan Sperling 2020-04-19T08:24:07

move clone/fetch connection progress messages to a more obvious spot

diff --git a/got/got.c b/got/got.c
index 916f941..377d2b0 100644
--- a/got/got.c
+++ b/got/got.c
@@ -1177,15 +1177,15 @@ cmd_clone(int argc, char *argv[])
 	if (error)
 		goto done;
 
+	if (verbosity >= 0)
+		printf("Connecting to %s%s%s\n", host,
+		    port ? ":" : "", port ? port : "");
+
 	error = got_fetch_connect(&fetchpid, &fetchfd, proto, host, port,
 	    server_path, verbosity);
 	if (error)
 		goto done;
 
-	if (verbosity >= 0)
-		printf("Connecting to %s%s%s\n", host,
-		    port ? ":" : "", port ? port : "");
-
 	fpa.last_scaled_size[0] = '\0';
 	fpa.last_p_indexed = -1;
 	fpa.last_p_resolved = -1;
@@ -1905,15 +1905,15 @@ cmd_fetch(int argc, char *argv[])
 	if (error)
 		goto done;
 
+	if (verbosity >= 0)
+		printf("Connecting to \"%s\" %s%s%s\n", remote->name, host,
+		    port ? ":" : "", port ? port : "");
+
 	error = got_fetch_connect(&fetchpid, &fetchfd, proto, host, port,
 	    server_path, verbosity);
 	if (error)
 		goto done;
 
-	if (verbosity >= 0)
-		printf("Connecting to \"%s\" %s%s%s\n", remote->name, host,
-		    port ? ":" : "", port ? port : "");
-
 	fpa.last_scaled_size[0] = '\0';
 	fpa.last_p_indexed = -1;
 	fpa.last_p_resolved = -1;