episoda 0.2.109 → 0.2.110
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/dist/daemon/daemon-process.js +10 -56
- package/dist/daemon/daemon-process.js.map +1 -1
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3211,7 +3211,7 @@ var WorktreeManager = class _WorktreeManager {
|
|
|
3211
3211
|
* Create a worktree for a module
|
|
3212
3212
|
* The entire operation is locked to prevent race conditions
|
|
3213
3213
|
*/
|
|
3214
|
-
async createWorktree(moduleUid, branchName, createBranch = false
|
|
3214
|
+
async createWorktree(moduleUid, branchName, createBranch = false) {
|
|
3215
3215
|
if (!validateModuleUid(moduleUid)) {
|
|
3216
3216
|
return {
|
|
3217
3217
|
success: false,
|
|
@@ -3250,13 +3250,9 @@ var WorktreeManager = class _WorktreeManager {
|
|
|
3250
3250
|
const result = await this.gitExecutor.execute({
|
|
3251
3251
|
action: "worktree_add",
|
|
3252
3252
|
path: worktreePath,
|
|
3253
|
-
branch:
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
// Don't create branch for detached
|
|
3257
|
-
detach: detachedHead,
|
|
3258
|
-
// EP1223: Detach flag
|
|
3259
|
-
startPoint: detachedHead ? "origin/main" : createBranch ? "origin/main" : void 0
|
|
3253
|
+
branch: branchName,
|
|
3254
|
+
create: createBranch,
|
|
3255
|
+
startPoint: createBranch ? "origin/main" : void 0
|
|
3260
3256
|
}, { cwd: this.bareRepoPath });
|
|
3261
3257
|
if (!result.success) {
|
|
3262
3258
|
return {
|