Skip to content

Commit

Permalink
fix: e sync, compare pathes with no case on Windows (electron#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsml committed May 8, 2024
1 parent 6cfcc75 commit 66bde25
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/e-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ function setRemotes(cwd, repo) {
.trim(),
);

if (gitRoot !== cwd) {
const _match = (process.platform === "win32") ?
(gitRoot.toLowerCase() === cwd.toLowerCase()) :
(gitRoot === cwd);
if (!_match) {
fatal(`Expected git root to be ${cwd} but found ${gitRoot}`);
}

Expand Down

0 comments on commit 66bde25

Please sign in to comment.