cli: fix abandon to not reload WorkspaceCommandHelper to get workspace id

This commit is contained in:
Yuya Nishihara 2023-01-15 17:06:06 +09:00
parent aef0801917
commit 4a17bc0302

View file

@ -2101,7 +2101,7 @@ fn cmd_abandon(
}
let num_rebased = tx.mut_repo().rebase_descendants(command.settings())?;
let workspace_id = command.workspace_helper(ui)?.workspace_id();
let workspace_id = workspace_command.workspace_id();
if to_abandon.len() == 1 {
ui.write("Abandoned commit ")?;
write_commit_summary(