[PATCH v5 28/29] t3440: exercise trailer config mapping

Li Chen
2025-10-22T05:45:05Z

Updated the rebase --root --trailer test
to exercise trailer.review.key configuration
and the --trailer= CLI form that uses an
equals separator, ensuring we still add the
expected Reviewed-by trailer.

Signed-off-by: Li Chen <chenl311@chinatelecom.cn>
---
t/t3440-rebase-trailer.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t3440-rebase-trailer.sh b/t/t3440-rebase-trailer.sh
index 35d2054716..d697bf558b 100755
--- a/t/t3440-rebase-trailer.sh
+++ b/t/t3440-rebase-trailer.sh
@@ -99,8 +99,8 @@ test_expect_success 'rebase -m --trailer adds trailer after conflicts' '

test_expect_success 'rebase --root --trailer updates every commit' '
git checkout first &&
- git rebase --root \
- --trailer "$REVIEWED_BY_TRAILER" &&
+ git -c trailer.review.key=Reviewed-by rebase --root \
+ --trailer=review="Dev <dev@example.com>" &&
expect_trailer_msg HEAD "first" &&
expect_trailer_msg HEAD^ "Initial empty commit"
'
--
2.51.0