From 8982192386d4c67a16211bb1f3e1e642ebed6212 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 10 Jul 2024 18:46:47 +0300 Subject: Fix crashing of 'bdep new -t empty -C @cfg ...' command --- bdep/new.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bdep/new.cxx b/bdep/new.cxx index 9f445a0..7c0f6f5 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -4105,7 +4105,13 @@ cmd_new (cmd_new_options&& o, cli::group_scanner& args) ca, move (cc))}; - cmd_init (o, prj, db, cfgs, pkgs, strings () /* pkg_args */); + cmd_init (o, + prj, + db, + cfgs, + pkgs, + strings () /* pkg_args */, + t != type::empty /* sync */); } return 0; -- cgit v1.1