From: Anders Waldenborg Date: Sun, 25 Oct 2020 21:26:37 GMT Subject: [PATCH 06/21] t4205: add test for trailer in log with nonstandard separator Message-ID: <20201025212652.3003036-7-anders@0x63.nu> In-Reply-To: <20201025212652.3003036-1-anders@0x63.nu> ); SAEximRunCond expanded to false Signed-off-by: Anders Waldenborg --- 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