Skip to content

Commit b5617cc

Browse files
committed
Unignore test which will now pass
1 parent 239accc commit b5617cc

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

crates/but-workspace/tests/workspace/commit_engine/refs_update.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ fn new_commits_to_tip_from_unborn_head() -> anyhow::Result<()> {
258258
/// https://github.com/gitbutlerapp/gitbutler/pull/7596 may affect the solution here, but
259259
/// it's not yet ready.
260260
#[test]
261-
#[ignore = "needs fixes"]
262261
fn new_stack_receives_commit_and_adds_it_to_workspace_commit() -> anyhow::Result<()> {
263262
assure_stable_env();
264263

@@ -311,10 +310,10 @@ fn new_stack_receives_commit_and_adds_it_to_workspace_commit() -> anyhow::Result
311310
// head was updated to point to the new workspace commit.
312311
insta::assert_snapshot!(visualize_commit_graph(&repo, repo.head_id()?)?, @r"
313312
* 7051951 (HEAD -> main) GitButler Workspace Commit
314-
|\
313+
|\
315314
| * 00fbfba (s2/top) new file with 15 lines
316315
* | b451685 (s1/top) insert 5 lines to the top
317-
|/
316+
|/
318317
* d15b5ae (tag: first-commit) init
319318
");
320319

crates/gitbutler-tauri/src/workspace.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ pub fn create_commit_from_worktree_changes(
138138
guard.write_permission(),
139139
);
140140

141-
// let vb_state = VirtualBranchesHandle::new(project.gb_dir());
142-
// gitbutler_branch_actions::update_workspace_commit(&vb_state, &ctx)
143-
// .context("failed to update gitbutler workspace")?;
144-
145141
let _ = snapshot_tree.and_then(|snapshot_tree| {
146142
ctx.snapshot_commit_creation(
147143
snapshot_tree,

0 commit comments

Comments
 (0)