meta project import
modifies .gitignore even with faulty input params
#297
Labels
meta project import
modifies .gitignore even with faulty input params
#297
🐛 Bug Report
When I run the
meta project import
command, I often forget to add bothdest
andrepoURL
params. Instead I just add one param (usually the repo URL). Meta then proceeds to modify the.gitignore
file, then tries to clone the repo but fails, hence not modifying the.meta
file. The.gitignore
file now contains the git URL, which is not correct.To Reproduce
Example:
The only modified file after this command is the
.gitignore
, meta adds thedest
param (which in this case is the git URL):Expected behavior
If only one param is detected (one of them is null/undefined), the command should be aborted and no files should be modified.
Alternatively, it would be great to allow only passing the
repoURL
and automatically parsing the repo name from it.The text was updated successfully, but these errors were encountered: