summaryrefslogtreecommitdiff
path: root/commit.d/50vcs-commit
AgeCommit message (Collapse)Author
2016-01-22Support ~/.config/git/config when determining the author name and email. ↵Joey Hess
Thanks, Richard Savio
2015-12-01/dev/null test outputJoey Hess
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
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-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.
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.
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-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
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.