Skip to content

Commit 6c4a7f5

Browse files
committed
Remove inappropriate validation
1 parent bea3ac3 commit 6c4a7f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/gitbutler-stack/src/stack.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,13 +564,13 @@ impl Stack {
564564

565565
let state = branch_state(ctx);
566566
let gix_repo = ctx.gix_repository()?;
567-
let stack_head = self.head(&gix_repo)?;
567+
// let stack_head = self.head(&gix_repo)?;
568568
let head = self
569569
.heads
570570
.last_mut()
571571
.ok_or_else(|| anyhow!("Invalid state: no heads found"))?;
572572
head.set_head(commit.into(), &gix_repo)?;
573-
validate_target(head.head_oid(&gix_repo)?, ctx.repo(), stack_head, &state)?;
573+
// validate_target(head.head_oid(&gix_repo)?, ctx.repo(), stack_head, &state)?;
574574
state.set_stack(self.clone())
575575
}
576576

0 commit comments

Comments
 (0)