Skip to content

Commit

Permalink
path.normalize if __NORMALIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Feb 7, 2025
1 parent 2b5d83a commit b9cd958
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/eas-cli/src/vcs/clients/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ export default class GitClient extends Client {

const easIgnorePath = path.join(rootPath, EASIGNORE_FILENAME);
if (await fs.exists(easIgnorePath)) {
const ignore = await Ignore.createAsync(rootPath);
const ignore = await Ignore.createAsync(
// eslint-disable-next-line no-underscore-dangle
process.env.__NORMALIZE === '1' ? path.normalize(rootPath) : rootPath
);
const wouldNotBeCopiedToClone = ignore.ignores(filePath);
const wouldBeDeletedFromClone =
(
Expand Down
9 changes: 8 additions & 1 deletion packages/eas-cli/src/vcs/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,14 @@ export class Ignore {
}
}

export async function makeShallowCopyAsync(src: string, dst: string): Promise<void> {
export async function makeShallowCopyAsync(_src: string, dst: string): Promise<void> {
let src = _src;

// eslint-disable-next-line no-underscore-dangle
if (process.env.__NORMALIZE === '1') {
src = path.normalize(src);
}

Log.debug('makeShallowCopyAsync', { src, dst });
const ignore = await Ignore.createAsync(src);
Log.debug('makeShallowCopyAsync ignoreMapping', { ignoreMapping: ignore.ignoreMapping });
Expand Down

0 comments on commit b9cd958

Please sign in to comment.