summaryrefslogtreecommitdiff
path: root/makima/src/daemon/worktree/manager.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-02-19 23:40:07 +0000
committerGitHub <noreply@github.com>2026-02-19 23:40:07 +0000
commited84d7ec5ece272a2cb8dabd36cbd6074df0887e (patch)
treead8bd85b44c577e656274bc846b0051837907038 /makima/src/daemon/worktree/manager.rs
parent28b191cc0b0e69b864191673df9c141730c93e4f (diff)
downloadsoryu-ed84d7ec5ece272a2cb8dabd36cbd6074df0887e.tar.gz
soryu-ed84d7ec5ece272a2cb8dabd36cbd6074df0887e.zip
feat: add git/gh auth checks, git fetch on worktree, fix contracts overflow (#72)
* feat: soryu-co/soryu - makima: Fix contracts page overflow - constrain layout to viewport height * feat: soryu-co/soryu - makima: Add git fetch to create_worktree and improve completion prompt merge conflict handling * WIP: heartbeat checkpoint
Diffstat (limited to 'makima/src/daemon/worktree/manager.rs')
-rw-r--r--makima/src/daemon/worktree/manager.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/makima/src/daemon/worktree/manager.rs b/makima/src/daemon/worktree/manager.rs
index 30618ea..489c488 100644
--- a/makima/src/daemon/worktree/manager.rs
+++ b/makima/src/daemon/worktree/manager.rs
@@ -484,6 +484,13 @@ impl WorktreeManager {
"Creating worktree with new branch"
);
+ // Fetch latest from remote to ensure origin refs are fresh
+ let _ = Command::new("git")
+ .args(["fetch", "origin", "--prune"])
+ .current_dir(source_repo)
+ .output()
+ .await;
+
// Prefer origin/{base_branch} to get latest remote state.
// If neither origin/{base_branch} nor {base_branch} exist (e.g. PR branch
// was deleted after merge), fall back to the repo's default branch.