Age | Commit message (Collapse) | Author |
|
|
|
(Note that bzr does not support etckeeper's pre-commit hook.)
|
|
git needs to git add the files to stage them as part of the current commit, but
hg does not, and hg add doesn't do that. Create the files as part of init,
this will cause them to be added, pre-commit, which hg needs.
|
|
Significantly refactored
|
|
|
|
|
|
|
|
While working on this, I had to consider security policies -- is it ok if
etckeeper init can run code from the /etc repository? I've decided this
should be ok, and documented that it should only be run on trusted repos.
Note that metastore could also be exploited by untrusted repos, and of
course, note that you're checking out your *** /etc *** so it damn well
better be trusted!
With that determined, I decided to use a simple shell script to hold the
empty directory info and allow them to be easily created. Expanding this for
other files git can't represent is a possibility..
|
|
|
|
|
|
|
|
work around various bugs and issues to avoid each commit making a change that
would be seen by the next commit..
|
|
|
|
|
|
|
|
other development too..
|
|
|
|
|