diff --git a/pkg/gui/controllers/helpers/worktree_helper.go b/pkg/gui/controllers/helpers/worktree_helper.go index 602ad3ac3..642378ace 100644 --- a/pkg/gui/controllers/helpers/worktree_helper.go +++ b/pkg/gui/controllers/helpers/worktree_helper.go @@ -76,7 +76,8 @@ func (self *WorktreeHelper) NewWorktree() error { InitialContent: currentBranchName, FindSuggestionsFunc: self.suggestionsHelper.GetRefsSuggestionsFunc(), HandleConfirm: func(base string) error { - canCheckoutBase := base != currentBranchName + // we assume that the base can be checked out + canCheckoutBase := true return self.NewWorktreeCheckout(base, canCheckoutBase, detached) }, })