Skip to content

Commit

Permalink
fix: path comparison in e sync
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Kozlov <[email protected]>
  • Loading branch information
codebytere and andrewsml committed Jul 25, 2024
1 parent 6ac782f commit 91b9cbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/e-sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ function setRemotes(cwd, repo) {
.trim(),
);

if (gitRoot !== cwd) {
// Check if the directories are the same in a way that handles case-insensitive
// filesystems
if (path.relative(gitRoot, cwd) !== '') {
fatal(`Expected git root to be ${cwd} but found ${gitRoot}`);
}

Expand Down

0 comments on commit 91b9cbf

Please sign in to comment.