@ronkovic/aad 0.3.8 → 0.3.9
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/package.json
CHANGED
|
@@ -68,18 +68,14 @@ export class MergeService {
|
|
|
68
68
|
try {
|
|
69
69
|
await lock.acquire();
|
|
70
70
|
|
|
71
|
-
this.logger?.info({ taskId, taskBranch, parentBranch }, "Merging task to parent");
|
|
71
|
+
this.logger?.info({ taskId, taskBranch, parentBranch, parentWorktree }, "Merging task to parent");
|
|
72
72
|
|
|
73
|
-
//
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
{ cwd: parentWorktree, logger: this.logger }
|
|
77
|
-
);
|
|
78
|
-
|
|
79
|
-
// Try merge
|
|
73
|
+
// Worktrees share the same git object store, so we can merge the task
|
|
74
|
+
// branch directly without fetching. This is more reliable than
|
|
75
|
+
// `git fetch <repoRoot> <branch>` + `git merge FETCH_HEAD`.
|
|
80
76
|
try {
|
|
81
77
|
await gitExec(
|
|
82
|
-
["merge", "--no-ff", "-m", `Merge task ${taskId as string}: ${taskBranch}`,
|
|
78
|
+
["merge", "--no-ff", "-m", `Merge task ${taskId as string}: ${taskBranch}`, taskBranch],
|
|
83
79
|
{ cwd: parentWorktree, logger: this.logger }
|
|
84
80
|
);
|
|
85
81
|
|