Skip to content

1.0.48

Choose a tag to compare

@morapelker morapelker released this 28 Feb 23:27
· 2895 commits to main since this release

What's Changed

Support checking out PRs from forks via fetch PR ref (#80)

  • Fix fork PR checkout failures: When checking out a pull request from a fork, the branch's headRefName only exists on the fork's remote and not on origin, causing an "invalid reference" error. This PR fixes that by fetching the PR ref directly via git fetch origin pull/<number>/head and using FETCH_HEAD as the start point for the new worktree.
  • Thread prNumber through the full data flow: Passes the PR number from BranchPickerDialog → ProjectItem → preload IPC → worktree-ops → git-service so the git service knows when it's dealing with a PR checkout.
  • Skip duplicate worktree guard for PR checkouts: A fork's headRefName may collide with a local branch name (e.g. both the fork and local repo have a main branch). The duplicate-detection logic is now skipped when prNumber is provided to avoid false positives.
  • Improved error logging: Added prNumber to the error log context in createWorktreeFromBranch for easier debugging.

Feature: configurable external editor for “Open in Editor” (#79)

External editor: Users can choose an editor in Settings (Cursor, Sublime, VS Code, custom). That choice is stored in the DB under a single key (APP_SETTINGS_DB_KEY / app_settings) and used for all “Open in Editor” actions (worktree, connection, file tree).
Main process: A shared helper openPathWithPreferredEditor in settings-handlers reads defaultEditor and customEditorCommand from the DB and spawns the right app. Worktree, connection, and git “Open in Editor” handlers call this helper instead ...