nanoc / features

Collection of feature requests
2 stars 1 forks source link

Let Git deployer automatically init output directory #46

Open denisdefreyne opened 6 years ago

denisdefreyne commented 6 years ago

@luc-j-bourhis said:

Looking at the doc and nanoc code, nanoc deploy does not setup the output directory as a git repo with an orphaned gh-pages branch. So I must have done that by hand and I forgot! It would be nice if nanoc deploy did the setup instead of stopping with an error though: it has all the info to do so, hasn't it?

Nanoc could do this automatically when there is no .git directory inside the output directory.

DaveEveritt commented 3 years ago

Only yesterday I tried nanoc deploy on one of my sites and got an error - discovered I'd removed the GIT folder from "output" while reverting back to Nanoc from the "GIT push to bare server repo" setup I use on other sites… so yes, it's not quite right having a GIT repo inside my main site's GIT repo (even if I gitignore it), and not needing it would clean things up.