Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-c/--create flag for encore ns switch fails if namespace already exists #1226

Closed
melkstam opened this issue May 23, 2024 · 2 comments
Closed

Comments

@melkstam
Copy link
Contributor

When using the -c/--create flag for encore ns switch, I expect it to create if not already exists. However, it currently fails if the namespace already exists.

example

@eandre
Copy link
Member

eandre commented May 23, 2024

The error message can certainly be better, but it seems correct to me that you get an error. git switch -c has the same behavior:

$ git branch test
$ git switch -c test
fatal: a branch named 'test' already exists

@melkstam
Copy link
Contributor Author

melkstam commented May 23, 2024

Ah, I see. Feel free to close this then, it was just my expectation that was incorrect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants