diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-10 18:46:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-31 14:40:23 +0300 |
commit | 8982192386d4c67a16211bb1f3e1e642ebed6212 (patch) | |
tree | e8b6c21c9c7138a92fcf9a8772d1c5ac62c1db3d | |
parent | 6b2dd1cd8515009508d627cad13bd39dd770638c (diff) |
Fix crashing of 'bdep new -t empty -C @cfg ...' command
-rw-r--r-- | bdep/new.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
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; |