Skip to content

Commit 11cd8c3

Browse files
committed
move rewrittenList file into the "done" state after an "apply" to avoid instructions duplicating
Signed-off-by: Kipras Melnikovas <[email protected]>
1 parent dacabc5 commit 11cd8c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apply.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export const markThatApplied = (pathToStackedRebaseDirInsideDotGit: string): voi
126126
[getPaths(pathToStackedRebaseDirInsideDotGit)].map(
127127
({ rewrittenListPath, needsToApplyPath, appliedPath }) => (
128128
fs.existsSync(needsToApplyPath) && fs.unlinkSync(needsToApplyPath), //
129-
fs.copyFileSync(rewrittenListPath, appliedPath),
129+
fs.renameSync(rewrittenListPath, appliedPath),
130130
void 0
131131
)
132132
)[0];

0 commit comments

Comments
 (0)