cli: wire shelve flag; more clippy fixes

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I694da71afe93bcb33687ff7d8e75f04f6a6a6964
This commit is contained in:
raf 2026-02-12 23:21:59 +03:00
commit e01313066d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
4 changed files with 19 additions and 17 deletions

View file

@ -211,13 +211,12 @@ fn execute_init(
.args(["log", "--limit", "1", "--template", ""])
.current_dir(path)
.output()
&& !output.stdout.is_empty()
{
if !output.stdout.is_empty() {
println!(
"Note: Jujutsu repository detected. Make sure to run 'jj git \
push' to sync changes with remote if needed."
);
}
println!(
"Note: Jujutsu repository detected. Make sure to run 'jj git \
push' to sync changes with remote if needed."
);
}
},
VcsType::None => {
@ -256,7 +255,7 @@ fn execute_init(
local_config.parent_config_hash = Some(config_hash);
}
// Now clone from the local path into .pakku/parent this avoids
// Now clone from the local path into .pakku/parent, this avoids
// re-downloading objects
let parent_path = Path::new(&parent_path_str);