You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.
The project creation workflow through the UI (Add Project view etc.) requires validation as it's currently possible to rm -rf the ~/.cruise/projects directory by adding a blank project.
SourceControl.create checks for nil instead of blank, so no exception is raised. raise ArgumentError, "options should include repository" unless scm_options[:repository]
Project.create catches an exception trying to checkout a local copy, given there's no project name it rm -rf the project directory in the rescue.
```FileUtils.rm_rf "#{dir}/#{project.name}"````
The text was updated successfully, but these errors were encountered:
The project creation workflow through the UI (Add Project view etc.) requires validation as it's currently possible to rm -rf the ~/.cruise/projects directory by adding a blank project.
To reproduce:
1 - Add Project view
2 - Click create
Params should look like:
SourceControl.create checks for nil instead of blank, so no exception is raised.
raise ArgumentError, "options should include repository" unless scm_options[:repository]
Project.create catches an exception trying to checkout a local copy, given there's no project name it rm -rf the project directory in the rescue.
```FileUtils.rm_rf "#{dir}/#{project.name}"````
The text was updated successfully, but these errors were encountered: