Closed imlogang closed 7 months ago
The error comes from this call and means that a .git
folder is already present in the folder of your orb. Deleting it should resolve the issue.
The error wording is misleading in this case, I'll try to find a better one.
This was addressed in this PR, should be released soon. Thanks for reporting!
What problem does this feature solve?:
When running
circleci orb init <directory>
it will fail if the directory already exists, but it says that the repository already exists.Provide an example:
It would be great if it could error out with
Error: Directory already exists
. I believe this logic exists here: https://github.com/CircleCI-Public/circleci-cli/blob/43878aa73c6d62396a228eccd138b5fdf4b8098e/cmd/orb.go#L1701-L1705