Skip to content

Commit

Permalink
fix: since comparing Buffers, use .equals, instead of === (latt…
Browse files Browse the repository at this point in the history
…er would always return false, because comparing references, lol)

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
  • Loading branch information
kiprasmel committed Apr 10, 2022
1 parent 8d2b131 commit 3c8f248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ const doesNeedToApply = (pathToStackedRebaseDirInsideDotGit: string): boolean =>
? /**
* check if has been applied, but that apply is outdated
*/
fs.readFileSync(appliedPath) !== fs.readFileSync(rewrittenListPath)
!fs.readFileSync(appliedPath).equals(fs.readFileSync(rewrittenListPath))
: false;

return needsToApplyPart2;
Expand Down

0 comments on commit 3c8f248

Please sign in to comment.