From: Charvi Mendiratta Date: Wed, 10 Feb 2021 11:36:47 +0000 (+0530) Subject: t/t3437: check the author date of fixed up commit X-Git-Tag: v2.32.0-rc0~128^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4755fed0a6d1390b4520658228617b17b9ee822a;p=thirdparty%2Fgit.git t/t3437: check the author date of fixed up commit Add '%at' format in the get_author() function and update the test to check that the author date of the fixed up commit is unchanged. Mentored-by: Christian Couder Mentored-by: Phillip Wood Helped-by: Eric Sunshine Signed-off-by: Charvi Mendiratta Signed-off-by: Junio C Hamano --- diff --git a/t/t3437-rebase-fixup-options.sh b/t/t3437-rebase-fixup-options.sh index d368ab4d4b..505211a589 100755 --- a/t/t3437-rebase-fixup-options.sh +++ b/t/t3437-rebase-fixup-options.sh @@ -33,7 +33,7 @@ test_commit_message () { get_author () { rev="$1" && - git log -1 --pretty=format:"%an %ae" "$rev" + git log -1 --pretty=format:"%an %ae %at" "$rev" } test_expect_success 'setup' ' @@ -196,6 +196,8 @@ test_expect_success 'multiple fixup -c opens editor once' ' EXPECT_HEADER_COUNT=4 \ git rebase -i $base && test_cmp_rev $base HEAD^ && + get_author HEAD >actual-author && + test_cmp expected-author actual-author && test 1 = $(git show | grep Modified-A3 | wc -l) '