From ed0b26a6581dc325c063a427bcb2f0b609f81403 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 1 Jul 2021 22:12:59 +0200 Subject: [PATCH] fixup! scalar clone: support GVFS-enabled remote repositories The Scalar.NET version of `scalar clone` helpfully displayed any cache server URL that was used; This is such useful information that we want to do the same in Scalar/C. Signed-off-by: Johannes Schindelin --- contrib/scalar/scalar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/scalar/scalar.c b/contrib/scalar/scalar.c index a03f44a6d126b8..e6f3f1687ad626 100644 --- a/contrib/scalar/scalar.c +++ b/contrib/scalar/scalar.c @@ -1007,6 +1007,9 @@ static int cmd_clone(int argc, const char **argv) res = error(_("could not configure cache server")); goto cleanup; } + if (cache_server_url) + fprintf(stderr, "Cache server URL: %s\n", + cache_server_url); } else { if (set_config("core.useGVFSHelper=false") || set_config("remote.origin.promisor=true") ||