fix(FN-4956): unstage out-of-scope layer3 resolutions
Fusion-Task-Id: FN-4956 Fusion-Task-Lineage: 7105cd5e-27f4-4e84-b2ae-e811a183803f
This commit is contained in:
committed by
gsxdsm
parent
78737841dd
commit
6b5ae63431
@@ -4039,6 +4039,9 @@ export async function applyLayer3ConflictScopePartition(params: {
|
||||
// In merge and rebase conflict contexts, `--ours` resolves to the
|
||||
// integration-target side (main bytes), which we keep for out-of-scope files.
|
||||
await resolveWithOurs(file, rootDir);
|
||||
// `resolveWithOurs` stages the file; unstage it so the squash does not
|
||||
// carry out-of-scope paths even though working-tree bytes now match main.
|
||||
await execAsync(`git reset HEAD -- ${quoteArg(file)}`, { cwd: rootDir });
|
||||
}
|
||||
|
||||
const { stdout: stagedOut } = await execAsync("git diff --cached --name-only", { cwd: rootDir, encoding: "utf-8" });
|
||||
|
||||
Reference in New Issue
Block a user