[PATCH 06/21] t4205: add test for trailer in log with nonstandard separator
); SAEximRunCond expanded to false
Signed-off-by: Anders Waldenborg <anders@0x63.nu>
---
t/t4205-log-pretty-formats.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/t/t4205-log-pretty-formats.sh b/t/t4205-log-pretty-formats.sh
index 757575d3f6..42544fb07a 100755
--- a/t/t4205-log-pretty-formats.sh
+++ b/t/t4205-log-pretty-formats.sh
@@ -757,6 +757,18 @@ test_expect_success 'pretty format %(trailers) combining separator/key/valueonly
test_cmp expect actual
'
+test_expect_success 'pretty format %(trailers) with nonstandard separator' '
+ git commit --allow-empty -F - <<-\EOF &&
+ Some fix
+
+ Closes #1234
+ EOF
+
+ git -c "trailer.separators=:#" log --no-walk --pretty="format:%s% (trailers:key=Closes)" >actual &&
+ echo "Some fix Closes: 1234" >expect &&
+ test_cmp expect actual
+'
+
test_expect_success 'trailer parsing not fooled by --- line' '
git commit --allow-empty -F - <<-\EOF &&
this is the subject
--
2.25.1