-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: check dir is exists before create/clone on world cardinal create…
… command (#83) Closes: WORLD-1044 ## Overview if you world create with name == "foobar" and you already have a dir named "foobar", the error message you get isn't very helpful. ## Brief Changelog - add checking for the exists dir before doing clone ## Testing and Verifying - Manually tested using `world cardinal create` command - Adjusted unit test <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced error handling in the Git clone operation to prevent overwriting existing directories by returning an error if the target directory already exists. - **Tests** - Updated test cases to utilize a new directory structure for command execution, ensuring consistent behavior in command tests. - Modified the `TestBuild` function to clone repositories into a specific subdirectory within the test environment. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
3 changed files
with
23 additions
and
3 deletions.
There are no files selected for viewing
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
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