We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3d0924 commit a952021Copy full SHA for a952021
packages/eas-cli/src/vcs/clients/git.ts
@@ -210,7 +210,11 @@ export default class GitClient extends Client {
210
.filter(file => file !== '');
211
212
await Promise.all(
213
- cachedFilesWeShouldHaveIgnored.map(file => fs.rm(path.join(destinationPath, file)))
+ cachedFilesWeShouldHaveIgnored.map(file =>
214
+ // `ls-files` does not go over files within submodules. If submodule is
215
+ // ignored, it is listed as a single path, so we need to `rm -rf` it.
216
+ fs.rm(path.join(destinationPath, file), { recursive: true, force: true })
217
+ )
218
);
219
220
// Special-case `.git` which `git ls-files` will never consider ignored.
0 commit comments