aboutsummaryrefslogtreecommitdiff
path: root/t/lib-t6000.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/lib-t6000.sh')
-rw-r--r--t/lib-t6000.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/lib-t6000.sh b/t/lib-t6000.sh
index e2c361563..4ffd90127 100644
--- a/t/lib-t6000.sh
+++ b/t/lib-t6000.sh
@@ -82,6 +82,14 @@ on_committer_date () {
"$@"
}
+on_dates () {
+ assign_fake_date GIT_COMMITTER_DATE "$1"
+ assign_fake_date GIT_AUTHOR_DATE "$2"
+ export GIT_COMMITTER_DATE GIT_AUTHOR_DATE
+ shift 2
+ "$@"
+}
+
# Execute a command and suppress any error output.
hide_error () {
"$@" 2>/dev/null