Skip to content

Commit

Permalink
fix: e sync, compare pathes with no case on Windows (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsml committed May 7, 2024
1 parent cfdc99c commit 76d4280
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.toLowerCase() !== cwd.toLowerCase()) {
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 76d4280

Please sign in to comment.