pulumi/pkg/cmd
bors[bot] 2b9aae0cff
Merge #11804
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>
2023-01-09 17:43:40 +00:00
..
pulumi Merge #11804 2023-01-09 17:43:40 +00:00