summaryrefslogtreecommitdiff
path: root/pre-commit.d
AgeCommit message (Collapse)Author
2013-06-26Quote user and group names, in case someone thought putting a space in one ↵Joey Hess
was not a bloody stupid idea.
2013-05-08When a file is owned by a uid or a gid with no corresponding user or group, ↵Joey Hess
put a numeric chown into .etckeeper. Previously, a broken chown was outputted.
2011-12-22Add `g` to shellquote's sed.Daniel Hahler
Props danielsh (Daniel Shahaf) in #zsh.
2011-11-25typoJoey Hess
2011-11-25typoJoey Hess
2011-11-25optimise metadata storageJoey Hess
Avoid running find on /etc three times, only run once; and avoid redundant user name lookups, and calls to stat(1). All done in perl now.
2011-11-25optimize file mode storingJoey Hess
Avoid runing stat(1) thousands of times. Note that etckeeper init is still slowed down by all this metadata, but that should be rarely used.
2011-11-25Merge branch 'master' into allpermsJoey Hess
Conflicts: debian/changelog
2011-11-25Bugfix for filenames containing single quotes.Joey Hess
-- Joey Hess <joeyh@debian.org> Fri, 25 Nov 2011 12:00:55 -0400
2011-11-25store all permissions of files and directories, even those with standard ↵Joey Hess
permissions of 644 and 755 This is unfortunately necessary in order to support etckeeper init on a checkout that was made with a nonstandard umask, in which case the files that were expected to be 644 and 755, won't be. Closes: #649701 Thanks to Дмитрий Матросов for reporting the bug and developing a fixup script (attached to the bug) which could be used if you've already encountered this problem.
2011-11-25decruftJoey Hess
2011-09-28Use find -path instead of less portable find -wholename.Joey Hess
2011-07-12Handle files with % in their names.Joey Hess
2011-06-19Add AVOID_SPECIAL_FILE_WARNING to config file, and set it in cron job to ↵Joey Hess
avoid daily noise. (gulikoza)
2011-03-18Avoid warning about special or hard linked files that are ignored by hg. ↵Joey Hess
Thanks Sjoerd Mullender for patch. Closes: https://bugzilla.redhat.com/show_bug.cgi?id=688991
2011-02-18correct exclude_external regexp to match fully relative pathsJoey Hess
git ls-files emits paths with no leading subdirectory. But the regexp still needs to avoid false positives.
2010-10-12Do not warn about special files or hardlinks if they are ignored by git. ↵Joey Hess
Fixes #549354 for git, but not for other VCSs.
2010-04-14more find portability fixJoey Hess
2010-04-14find portability fixJoey Hess
2009-02-16Avoid relying on USER being set, won't be for cron job. Closes: #515602Joey Hess
2009-02-04Support darcs. Thanks to Gian Piero Carrubba. Closes: #510032Joey Hess
2009-02-04avoid hardcoding root user/groupJoey Hess
Patch from Tobias Hunger who is trying to use etckeeper with non-root users, outside of /etc.
2008-12-31releasing version 0.25Joey Hess
2008-12-27Make .etckeeper test that files actually exist before acting on them. ↵Joey Hess
Closes: #509888
2008-07-03Don't allow LC_COLLATE to reorder the .etckeeper file. Closes: #489057Joey Hess
2008-03-29releasing version 0.14Joey Hess
2008-03-20remove .metadata first so .etckeeper doesn't try to chmod itJoey Hess
Also, remove vcs test, as it's in a code block that already tests that.
2008-03-20find has a bug where pruned directories are considered empty, even if ↵Scott Bronson
they're not. Therefore we'll revert to the previous empty directory finding code. The previous code would let "mkdir -p './.git'" into .etckeeper (no big deal but still wrong).
2008-03-20Simplify the store-metadata script by calling chmod every time.Scott Bronson
2008-03-20Of course all filenames in .etckeeper should be surrounded by quotes.Scott Bronson
2008-03-20Store metadata in .etckeeper, not .fix-metadata.Scott Bronson
2008-03-20Turns out dash doesn't support ${string:substibution}. Use printf instead.Scott Bronson
2008-03-17$VCS rm .metadata instead of warning about its existence.Scott Bronson
2008-03-17Prune .bzr and .hg now (as well as .git) when running the find commands.Scott Bronson
2008-03-17Use a filter function to cull UNKNOWN users and groups.Scott Bronson
2008-03-17Move .fix-metadata generation into a function.Scott Bronson
2008-03-17Don't hard-code /etc, etckeeper might be managing another directory.Scott Bronson
2008-03-17Merge branch 'master' of git://git.kitenet.net/etckeeperScott Bronson
2008-03-14exclude .hg and .bzr as well as .gitJoey Hess
2008-03-14ignore .bzr in find commandJoey Hess
2008-03-12Remove metastore, use simple find scripts instead.Scott Bronson
2008-03-11fix horrible typo in patchJoey Hess
2008-03-11* Add support for bzr, thanks to Mark A. Hershberger. Closes: #470515Joey Hess
(Note that bzr does not support etckeeper's pre-commit hook.)
2008-01-04tricky stuff to do with storing metadata etc in pre-commitJoey Hess
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.
2008-01-04Merge branch 'hg'Joey Hess
Significantly refactored
2008-01-03hg and git subrepo creation (hg is for now a copy of git)Mathieu Clabaut
2007-11-05renumberJoey Hess
2007-11-05remove debuggingJoey Hess
2007-11-05store empty directories and restore in etckeeper initJoey Hess
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..
2007-11-05fix .metadata file perms after initial creation tooJoey Hess