Age | Commit message (Collapse) | Author |
|
The pre-commit hook has always (and continues) to do that, but pre-commit
is only run when there are changes to tommit. This makes metadata-only
changes get committed.
Note that the reason the pre-commit hook continues to also store metadata
changes is to support manual git commit run in /etc.
|
|
Thanks, Richard Savio
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
The commit script was edited, for using the default branch of mercurial to do autopush.
|
|
|
|
|
|
who sued or sudoed to root, in preference to making up values for that user.
|
|
|
|
|
|
A new variable is introduced that will cause etckeeper to push to a
configuration-defined remote.
|
|
The file could be in any of three states; absent, present, or .dpkg-dist.
Finish fully removing it. Closes: #655836
|
|
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.
|
|
GIT_AUTHOR_NAME, GIT_AUTHOR_EMAIL, GIT_COMMITTER_EMAIL) if they don't already exist.
|
|
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
|
|
stripping it. Closes: #600026
|
|
configure it in .gitconfig. Closes: #599749
|
|
that option common to several VCS. Closes: #592050
|
|
|
|
committer. So, set the author to the user running sudo for both. The committer will then be root.
|
|
committing. Closes: #533298
|
|
|
|
|
|
|
|
messages. Closes: #577915
|
|
Unix portability! (Instead, use dnsdomainname if available, and otherwise, fall back to the unqualified hostname.)
|
|
* 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.
|
|
say that for every VCS the username is recorded.
|
|
on a patch by Jakov Sosic.
|
|
user, as it is in git.
|
|
|
|
|
|
|
|
|
|
removed, but the directory is left existing and empty, by touching a flag file before calling git rm. Closes: 513006
|
|
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>
|
|
|
|
|
|
Conflicts:
debian/changelog
|
|
|
|
|
|
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.
|
|
|
|
(Note that bzr does not support etckeeper's pre-commit hook.)
|
|
* 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.
|