aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bdep/sync.cxx11
1 files changed, 10 insertions, 1 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx
index 760b184..6c1d0b0 100644
--- a/bdep/sync.cxx
+++ b/bdep/sync.cxx
@@ -1631,9 +1631,18 @@ namespace bdep
if (cfg.reps.empty ())
continue;
+ const path& p (cfg.path);
+
+ // If we are deep-fetching multiple configurations, print their names.
+ // Failed that it will be quite confusing since we may be re-fetching
+ // the same repositories over and over.
+ //
+ if (cfgs.size () != 1 && *fetch)
+ text << "fetching in configuration " << p.representation ();
+
run_bpkg (3, co,
"fetch",
- "-d", cfg.path.get (),
+ "-d", p,
(*fetch ? nullptr : "--shallow"),
cfg.reps);
}