]> git.ipfire.org Git - thirdparty/git.git/commit - ident.c
am: stop exporting GIT_COMMITTER_DATE
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Mon, 17 Aug 2020 17:40:01 +0000 (18:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Aug 2020 18:58:37 +0000 (11:58 -0700)
commite8cbe2118a8e3c1aa71ed8d93f96001decebde1d
tree2a431c9955a73175b6edc8ee95cc1dfa311946d5
parentef484add9f6ba846c62e4f13ebe0ba99b9cc4aa5
am: stop exporting GIT_COMMITTER_DATE

The implementation of --committer-date-is-author-date exports
GIT_COMMITTER_DATE to override the default committer date but does not
reset GIT_COMMITTER_DATE in the environment after creating the commit
so it is set in the environment of any hooks that get run. We're about
to add the same functionality to the sequencer and do not want to have
GIT_COMMITTER_DATE set when running hooks or exec commands so lets
update commit_tree_extended() to take an explicit committer so we
override the default date without setting GIT_COMMITTER_DATE in the
environment.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c
builtin/commit.c
commit.c
commit.h
ident.c
sequencer.c