]> git.ekhem.eu.org Git - guix.git/commitdiff
[ai] Base worktrees on origin instead of HEAD.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 22 Nov 2026 14:50:54 +0000 (14:50 +0000)
committerJakub Czajka <jakub@ekhem.eu.org>
Sun, 22 Nov 2026 14:51:12 +0000 (14:51 +0000)
With baseRef "head", a new worktree branches from the local HEAD.
If the local HEAD is unborn or cannot be read, git worktree add has
no commit to branch from and worktree creation deadlocks.

Use "fresh" so new worktrees branch from origin's default branch,
which is present even when the local HEAD is not.

.claude/settings.json

index 099447f71f02a0b4218529f4e14e2b5e7f6928d4..d186f4443e36826b9442355fce2d5d28a75e33a0 100644 (file)
@@ -4,7 +4,7 @@
     "PROFILE": "nonfree"
   },
   "worktree": {
-    "baseRef": "head"
+    "baseRef": "fresh"
   },
   "statusLine": {
     "type": "command",