@@ -111,29 +111,29 @@ EOF
111111# we don't test relative here
112112test_format author %an%n%ae%n%ad%n%aD%n%at << EOF
113113commit $head2
114- A U Thor
115- author@example.com
114+ $GIT_AUTHOR_NAME
115+ $GIT_AUTHOR_EMAIL
116116Thu Apr 7 15:13:13 2005 -0700
117117Thu, 7 Apr 2005 15:13:13 -0700
1181181112911993
119119commit $head1
120- A U Thor
121- author@example.com
120+ $GIT_AUTHOR_NAME
121+ $GIT_AUTHOR_EMAIL
122122Thu Apr 7 15:13:13 2005 -0700
123123Thu, 7 Apr 2005 15:13:13 -0700
1241241112911993
125125EOF
126126
127127test_format committer %cn%n%ce%n%cd%n%cD%n%ct << EOF
128128commit $head2
129- C O Mitter
130- committer@example.com
129+ $GIT_COMMITTER_NAME
130+ $GIT_COMMITTER_EMAIL
131131Thu Apr 7 15:13:13 2005 -0700
132132Thu, 7 Apr 2005 15:13:13 -0700
1331331112911993
134134commit $head1
135- C O Mitter
136- committer@example.com
135+ $GIT_COMMITTER_NAME
136+ $GIT_COMMITTER_EMAIL
137137Thu Apr 7 15:13:13 2005 -0700
138138Thu, 7 Apr 2005 15:13:13 -0700
1391391112911993
@@ -410,7 +410,7 @@ test_expect_success 'empty email' '
410410 test_tick &&
411411 C=$(GIT_AUTHOR_EMAIL= git commit-tree HEAD^{tree} </dev/null) &&
412412 A=$(git show --pretty=format:%an,%ae,%ad%n -s $C) &&
413- verbose test "$A" = "A U Thor ,,Thu Apr 7 15:14:13 2005 -0700"
413+ verbose test "$A" = "$GIT_AUTHOR_NAME ,,Thu Apr 7 15:14:13 2005 -0700"
414414'
415415
416416test_expect_success ' del LF before empty (1)' '
@@ -495,7 +495,7 @@ test_expect_success '%gd shortens ref name' '
495495'
496496
497497test_expect_success ' reflog identity' '
498- echo "C O Mitter:committer@example.com " >expect &&
498+ echo "$GIT_COMMITTER_NAME:$GIT_COMMITTER_EMAIL " >expect &&
499499 git log -g -1 --format="%gn:%ge" >actual &&
500500 test_cmp expect actual
501501'
0 commit comments