Age | Commit message (Collapse) | Author |
|
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
|
|
from the release notes of the upcoming 1.5.4 release:
"The next feature release of git (this change is scheduled for v1.6.0) will by
default install dashed form of commands (e.g. "git-commit") outside of users'
normal $PATH"
|
|
|
|
Conflicts:
Makefile
pre-install.d/50uncommitted-changes
Additinoal fix:
As noted by Joey, we should bail out with an error if git commit fails when
using pacman-g2.
Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
|
|
in etckeeper.conf.
* Only install apt hooks if apt is used.
* Only add backup conffile exclusion to gitignore if dpkg is used.
* Rename pre/post-apt.d to pre/post-install.d to allow the same directories
to be used for other package managers.
* Use the name of the highlevel package manager in commit messages.
|
|
|
|
|
|
that call getspent().
|
|
|
|
|
|
|
|
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..
|
|
Store the toplevel directory of the repo in the pre-commit hook, and cd to
there. This is not ideal, but good enough.
|
|
|
|
|
|
|
|
|
|
other development too..
|
|
|
|
|