Skip to content

Commit 02fcef4

Browse files
committed
fix: since comparing Buffers, use .equals, instead of === (latter would always return false, because comparing references, lol)
Signed-off-by: Kipras Melnikovas <[email protected]>
1 parent ba766f9 commit 02fcef4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: apply.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const doesNeedToApply = (pathToStackedRebaseDirInsideDotGit: string): boolean =>
143143
? /**
144144
* check if has been applied, but that apply is outdated
145145
*/
146-
fs.readFileSync(appliedPath) !== fs.readFileSync(rewrittenListPath)
146+
!fs.readFileSync(appliedPath).equals(fs.readFileSync(rewrittenListPath))
147147
: false;
148148

149149
return needsToApplyPart2;

0 commit comments

Comments
 (0)