jettypod 4.4.16 → 4.4.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/worktree-manager.js +3 -2
- package/package.json +1 -1
package/lib/worktree-manager.js
CHANGED
|
@@ -234,13 +234,14 @@ async function createWorktree(workItem, options = {}) {
|
|
|
234
234
|
// Step 4.5: Add .jettypod to worktree's local gitignore
|
|
235
235
|
// This prevents the symlink from being committed when merging the worktree branch
|
|
236
236
|
try {
|
|
237
|
-
// Get the worktree's git directory
|
|
237
|
+
// Get the worktree's git directory (returns absolute path for worktrees)
|
|
238
238
|
const gitDirOutput = execSync('git rev-parse --git-dir', {
|
|
239
239
|
cwd: worktreePath,
|
|
240
240
|
encoding: 'utf8'
|
|
241
241
|
}).trim();
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
// gitDirOutput is already absolute for worktrees (e.g., /path/to/.git/worktrees/name)
|
|
244
|
+
const excludePath = path.join(gitDirOutput, 'info', 'exclude');
|
|
244
245
|
|
|
245
246
|
// Ensure the info directory exists
|
|
246
247
|
const infoDir = path.dirname(excludePath);
|