mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-02 18:01:05 +00:00
cli: fix abandon to not reload WorkspaceCommandHelper to get workspace id
This commit is contained in:
parent
aef0801917
commit
4a17bc0302
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue