Skip to content

Commit

Permalink
Do not include files deleted in working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sjchmiela committed Feb 10, 2025
1 parent 78837a4 commit cb46188
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/eas-cli/src/vcs/clients/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,19 @@ export default class GitClient extends Client {
await setGitCaseSensitivityAsync(true, rootPath);
await spawnAsync(
'git',
['clone', '--no-hardlinks', '--depth', '1', gitRepoUri, destinationPath],
[
'clone',
// If we do not require a commit, we are going to later
// copy the working directory into the destination path,
// so we can skip the checkout step (which also adds files
// that have been removed in the working directory).
this.requireCommit ? null : '--no-checkout',
'--no-hardlinks',
'--depth',
'1',
gitRepoUri,
destinationPath,
].flatMap(e => e ?? []),
{ cwd: rootPath }
);

Expand Down

0 comments on commit cb46188

Please sign in to comment.