forked from mirrors/jj
cli: propagate failure to record new working-copy id
This code cannot currently fail because we we never pass in the root commit, but it's more future-proof to propagate the error.
This commit is contained in:
parent
ce094c618b
commit
b079897a56
1 changed files with 1 additions and 3 deletions
|
@ -860,9 +860,7 @@ impl WorkspaceCommandHelper {
|
|||
.rewrite_commit(&self.settings, &wc_commit)
|
||||
.set_tree(new_tree_id)
|
||||
.write()?;
|
||||
mut_repo
|
||||
.set_wc_commit(workspace_id, commit.id().clone())
|
||||
.unwrap();
|
||||
mut_repo.set_wc_commit(workspace_id, commit.id().clone())?;
|
||||
|
||||
// Rebase descendants
|
||||
let num_rebased = mut_repo.rebase_descendants(&self.settings)?;
|
||||
|
|
Loading…
Reference in a new issue