mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
7f88efd743
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
18 lines
572 B
Bash
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'
|