diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-10 18:46:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-07-11 10:45:04 +0300 |
commit | 92838a856398b48315429b8cef8750a5df22af4a (patch) | |
tree | 6c1e89d93185561100c3d95c0b132b2631787ff6 | |
parent | c4f2fb6f7bc78f75a965bbb20560811ee79a40c7 (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; |