Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
11804: cli/new: Ignore VCS directories r=abhinav a=abhinav # Description The following set of operations currently fail with the CLI. git init pulumi new This is because `pulumi new` refuses to run inside non-empty directories. This changes `pulumi new` to ignore .git, .hg, and .bzr files/directories when considering whether a directory is empty. Resolves #11789 ## Checklist - [x] I have added tests that prove my fix is effective or that my feature works - [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change Co-authored-by: Abhinav Gupta <abhinav@pulumi.com>
- Loading branch information
Showing
3 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/pending/20230107--cli-new--allow-running-inside-new-git-repositories.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
changes: | ||
- type: fix | ||
scope: cli/new | ||
description: Allow running inside new VCS repositories. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters