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

fatal: destination path '.' already exists and is not an empty directory. #43

Closed
wandl opened this issue Aug 5, 2015 · 1 comment
Closed

Comments

@wandl
Copy link

wandl commented Aug 5, 2015

If you try and install to an existing empty directory by typing full path:

• Where do you want to setup the project? : (/Users//) /Users//Sites/
theme-juice will fail:
… Cloning theme
fatal: destination path '.' already exists and is not an empty directory.

I think it should at least be more clear to actually cd ~// then run theme-juice and only specify the folder name to create if it exists then maybe ask what to do eg: run anway?

This had me stumped at first.

@ezekg ezekg closed this as completed in 166b418 Aug 5, 2015
@ezekg
Copy link
Contributor

ezekg commented Aug 5, 2015

When creating a project, all locations are by default relative to your current working directory pwd (what's in the parenthesis), so in your case you could have just passed in Sites/<site-name> and it would have resolved to the path /Users/<user>/Sites/<site-name>. I guess I had never tried passing in absolute paths. I should have had a couple tests for this. Just pushed out a new version with the patch. Thanks for the report! 👍

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