mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-19 19:08:08 +00:00
completion: remove redundant rebuild of default config
This commit is contained in:
parent
c4eaef6dfc
commit
d6efd12bc8
1 changed files with 1 additions and 5 deletions
|
@ -676,11 +676,7 @@ fn get_jj_command() -> Result<(JjBuilder, UserSettings), CommandError> {
|
||||||
// child process. This shouldn't fail, since none of the global args are
|
// child process. This shouldn't fail, since none of the global args are
|
||||||
// required.
|
// required.
|
||||||
let app = crate::commands::default_app();
|
let app = crate::commands::default_app();
|
||||||
let config = config::Config::builder()
|
let mut stacked_config = config_from_environment(default_config());
|
||||||
.add_source(default_config())
|
|
||||||
.build()
|
|
||||||
.expect("default config should be valid");
|
|
||||||
let mut stacked_config = config_from_environment(config);
|
|
||||||
let ui = Ui::with_config(&stacked_config.merge()).expect("default config should be valid");
|
let ui = Ui::with_config(&stacked_config.merge()).expect("default config should be valid");
|
||||||
let cwd = std::env::current_dir()
|
let cwd = std::env::current_dir()
|
||||||
.and_then(|cwd| cwd.canonicalize())
|
.and_then(|cwd| cwd.canonicalize())
|
||||||
|
|
Loading…
Reference in a new issue