Skip to content

Commit a952021

Browse files
committed
Fix deleting submodules
1 parent b3d0924 commit a952021

File tree

1 file changed

+5
-1
lines changed
  • packages/eas-cli/src/vcs/clients

1 file changed

+5
-1
lines changed

packages/eas-cli/src/vcs/clients/git.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,11 @@ export default class GitClient extends Client {
210210
.filter(file => file !== '');
211211

212212
await Promise.all(
213-
cachedFilesWeShouldHaveIgnored.map(file => fs.rm(path.join(destinationPath, file)))
213+
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+
)
214218
);
215219

216220
// Special-case `.git` which `git ls-files` will never consider ignored.

0 commit comments

Comments
 (0)