summaryrefslogtreecommitdiff
path: root/commit.d
AgeCommit message (Collapse)Author
2015-11-30bzr: make sure EMAIL is definedSerge Hallyn
Bzr refuses to commit changes before name and email are configured. If etckeeper is run very early during install, it can happen that these are in fac tnot yet set up. This patch ensures that they are configured. It has been in the Ubuntu delta for many years. Reference: https://bugs.launchpad.net/ubuntu/+source/etckeeper/+bug/661024 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
2015-08-04Fix typo of GIT_COMMITTER_EMAIL.Joey Hess
2015-06-01use getent(1) from glibc to retrieve user homeElan Ruusamäe
2014-05-08Added support for pushing to multiple remote repositoriesRouben
2013-11-03export on separate line from variable definitionJoey Hess
2013-11-03Export Git variables, otherwise Git falls back to determining them itself.Michael Kuhn
2013-10-01Autopush support for mercurial added.kes31
The commit script was edited, for using the default branch of mercurial to do autopush.
2013-07-31Fix hilarious typo hardcoding my name. Closes: #718425Joey Hess
2013-07-27Guard git config calls. Closes: #717957Joey Hess
2013-07-22Use user.name and user.email from the .gitconfig file belonging to the user ↵Joey Hess
who sued or sudoed to root, in preference to making up values for that user.
2013-05-06Fix warning when PUSH_REMOTE is not set. Closes: #706917Joey Hess
2012-11-19improvements to push codeJoey Hess
2012-11-18Add support for auto-pushing after a commitL. Alberto Giménez
A new variable is introduced that will cause etckeeper to push to a configuration-defined remote.
2012-01-14Fix up botched git-rm conffile removal from 0.58.Joey Hess
The file could be in any of three states; absent, present, or .dpkg-dist. Finish fully removing it. Closes: #655836
2011-11-25Use git add -A, which automatically removes deleted files, and avoids a ↵Joey Hess
separate call to git add -u. Thanks to Miklos Vajna, whose patch in 2008 was deferred because -A was then too new, and languished in a branch until found today.
2011-02-20Only set environment variables for commit authorship (EMAIL, ↵Josh Triplett
GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL) if they don't already exist.
2011-01-13Rewrote 50git-rmJoey Hess
This avoids using git ls-files, and thus avoids encoding problems with filenames. Using git add . -u stages all deleted files for deletion. It also avoids the problem with git rm deleting empty directories. It might be better to just use git commit -a, but I've taken the conservative approach. There are a few other git ls-files uses in etckeeper that I have not fixed, but they are only shown to the user, and shouldn't cause a crash as this did. Unfortunatly, git does expose the nasty C-style encoding of such characters in filenames to the user all over (eg, git commit, git log ..), so fixing etckeeper to not also expose them is probably a waste of time. And core.quotepath can be unset by users who want to clean that up. Bug report: https://bugzilla.altlinux.org/show_bug.cgi?id=24903
2010-10-20Deal with strange systems that include the domain name in the hostname, by ↵Joey Hess
stripping it. Closes: #600026
2010-10-20Set GIT_COMMITTER_EMAIL to root@$hostname to avoid git prompting the user to ↵Joey Hess
configure it in .gitconfig. Closes: #599749
2010-09-11Ignore -m switch to etckeeper commit, in case someone tries to use it with ↵Joey Hess
that option common to several VCS. Closes: #592050
2010-06-02Fix backwards test for HGUSER. (Mike Rich)Joey Hess
2010-05-28Both git and bzr default to showing the author of a commit, and not the ↵Joey Hess
committer. So, set the author to the user running sudo for both. The committer will then be root.
2010-05-28hg: Set HGUSER (if not already set) to avoid warning message when ↵Joey Hess
committing. Closes: #533298
2010-05-16Support etckeeper commit --stdinJoey Hess
2010-04-15missing rmJoey Hess
2010-04-15Fix logic error in darcs user code. Closes: #577918Joey Hess
2010-04-15Revert darcs to using --logfile again, necessary for multiline commit ↵Joey Hess
messages. Closes: #577915
2010-04-08Avoid using hostname -f, since on Solaris that sets the hostname to -f. Yay, ↵Joey Hess
Unix portability! (Instead, use dnsdomainname if available, and otherwise, fall back to the unqualified hostname.)
2010-03-12darcs cleanupJoey Hess
* Changed darcs to specify --author instead of noting the committing user inside the commit log. * Add -a to DARCS_COMMIT_OPTIONS so commits are noninteractive by default, but users who want darcs prompting can disable it. * Use darcs record -m to specify commit message, instead of using a logfile.
2010-02-18Record real committer username in the darcs log, so that the man page can ↵Joey Hess
say that for every VCS the username is recorded.
2010-02-18Check owner of tty to determine who has su'd to root when committing, based ↵Joey Hess
on a patch by Jakov Sosic.
2009-07-19bzr: Set author to root when committing via sudo. Committer will be the sudo ↵Joey Hess
user, as it is in git.
2009-06-28Use hostname if hostname -f fails. Closes: #533295Joey Hess
2009-02-13Fix executable bits on two darcs support scripts.Joey Hess
2009-02-04Support darcs. Thanks to Gian Piero Carrubba. Closes: #510032Joey Hess
2009-01-28Use SUDO_USER as the committer if set. Closes: #498739 (Thierry Carrez)Joey Hess
2009-01-25Prevent git from removing a directory when the last file in it has been ↵Joey Hess
removed, but the directory is left existing and empty, by touching a flag file before calling git rm. Closes: 513006
2008-09-14commit.d: use git add -AMiklos Vajna
Till now we were doing this by hand, using git add . and git ls-files|git rm, but git add -A does the same and it's faster. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
2008-05-30Make 'bzr add' quiet so new files aren't printed to stdout twice.Jelmer Vernooij
2008-04-05Remove pointless bzr-rm script.Jelmer Vernooij
2008-04-05Merge commit 'jelmer/master'Joey Hess
Conflicts: debian/changelog
2008-04-05Add commit hook script for bzr to add new filesJoey Hess
2008-04-05Remove now obsolete precommit script for bzr.Jelmer Vernooij
2008-04-05Add commit hook script for bzr to add new filesdAniel hAhler
Committing fails with "bzr", if there are only new files and new files probably never get added. This script adds the files during the "commit" process.
2008-04-05remove unused TAB settingsJoey 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-15 * Convert the directory parameter of etckeeper into "-d directory".Joey Hess
* Pass other patameters on from etckeeper to the .d scripts. * Stop using run-parts for various reasons. * Split out a commit.d that contains committing code that's used by both the pre-install.d and post-install.d scripts. * Split out an unclean.d that tests if the WC contains uncommitted changes. * Add preinst code to remove old post-install.d scripts.