move clone/fetch connection progress messages to a more obvious spot
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
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;