Skip to content

Commit ed31a41

Browse files
committed
fix(ng-dev): run git clean after git checkout during the release (#3042)
This is needed as in some cases, `node_modules` can be left around and in old bazel versions can cause an infinite symlink expansion PR Close #3042
1 parent 7e755fc commit ed31a41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ng-dev/release/publish/actions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ export abstract class ReleaseAction {
366366
protected async checkoutUpstreamBranch(branchName: string) {
367367
this.git.run(['fetch', '-q', this.git.getRepoGitUrl(), branchName]);
368368
this.git.run(['checkout', '-q', 'FETCH_HEAD', '--detach']);
369+
this.git.run(['clean', '-dfq']);
369370
}
370371

371372
/** Installs all Yarn dependencies in the current branch. */

0 commit comments

Comments
 (0)