Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Do not delete repositories in _site upon build. #556

wants to merge 2 commits into


None yet
3 participants

parkr commented May 20, 2012

This pull request includes the code (with tests) that allows the user to keep repositories that are setup in _site, i.e. they are not deleted from the destination directory upon the execution of Site#cleanup. It covers Git, SVN, and Mercurial. Additionally, a configuration option (keep_repos) was added to allow the user to turn this functionality off if preferred, but it is on by default ("if it (the repo) is there, don't touch it"-kind of reasoning).


parkr commented May 20, 2012

This is a different implementation of #337. 337 only includes .git files and has a bug in it.

cnlpete commented May 25, 2012



parkr commented May 29, 2012

Closing to rework the approach. Am going to create a pre-filled String, Jekyll::DEFAULTS['ignore'] which contains a comma-separated list of files and folders to ignore upon the execution of Site#cleanup.

@parkr parkr closed this May 29, 2012

@abhiyerra abhiyerra pushed a commit to abhiyerra/jekyll that referenced this pull request Nov 6, 2013

@edeustace edeustace Added a configuration variable: keep_files (default: ['.git']), based…
… on this pull request: jekyll#556

@jekyllbot jekyllbot locked and limited conversation to collaborators Feb 27, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.