sapling/eden/scm/tests/git.sh
Jun Wu 7f88efd743 git: update committer information when creating new commits
Summary:
This matches the Git behavior. Update committer and date by default.

`test-git.t` is changed since some commits have committer written by Git with
`test <test@example.org>` and this diff rewrites the committer to `test <>`.

Reviewed By: sggutier

Differential Revision: D42200687

fbshipit-source-id: 0d40ad0868e89cbe0cf932782bfe4f74d42c9e65
2022-12-22 08:54:54 -08:00

18 lines
572 B
Bash

# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
# reset git environment variables
export GIT_AUTHOR_NAME="test"
export GIT_AUTHOR_EMAIL="test@example.org"
export GIT_AUTHOR_DATE="2007-01-01 00:00:10 +0000"
export GIT_COMMITTER_NAME="test"
export GIT_COMMITTER_EMAIL="test@example.org"
export GIT_COMMITTER_DATE="2007-01-01 00:00:10 +0000"
unset GIT_DIR
# preserve test compatibility
setconfig git.committer='test'
setconfig git.committer-date='0 0'