Skip to content

Commit 6728d52

Browse files
committed
Fix broken submodules
1 parent 9aec01a commit 6728d52

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

dotfiles/claude/settings.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
"Write(./MyNotes/**)"
8181
]
8282
},
83+
"enabledPlugins": {
84+
"walshca@de-ai-native-pm-craft": true,
85+
"publish-confluence@de-ai-native-pm-craft": true
86+
},
8387
"extraKnownMarketplaces": {
8488
"kiln-marketplace": {
8589
"source": {
@@ -95,8 +99,5 @@
9599
}
96100
},
97101
"effortLevel": "high",
98-
"skipDangerousModePermissionPrompt": true,
99-
"enabledPlugins": {
100-
"walshca@de-ai-native-pm-craft": true
101-
}
102+
"skipDangerousModePermissionPrompt": true
102103
}

worktrunk.pre-start

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ primary_worktree="${1:?primary worktree path required}"
1111
git config --file .gitmodules --get-regexp 'submodule\..*\.path' \
1212
| awk '{print $2}' \
1313
| while read -r p; do
14-
[ -d "$primary_worktree/$p" ] && rsync --archive --quiet "$primary_worktree/$p/" "$p/"
14+
# Submodule .git files use worktree-specific gitdir paths; don't copy from primary.
15+
[ -d "$primary_worktree/$p" ] && rsync --archive --quiet --exclude '.git' "$primary_worktree/$p/" "$p/"
1516
done

0 commit comments

Comments
 (0)