Skip to content

Commit fbfcaec

Browse files
avargitster
authored andcommitted
pretty tests: simplify %aI/%cI date format test
Change a needlessly complex test for the %aI/%cI date formats (iso-strict) added in 466fb67 (pretty: provide a strict ISO 8601 date format, 2014-08-29) to instead use the same pattern used to test %as/%cs since 0df6211 (pretty: provide short date format, 2019-11-19). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 311531c commit fbfcaec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

t/t4205-log-pretty-formats.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,8 +527,7 @@ test_expect_success 'strbuf_utf8_replace() not producing NUL' '
527527

528528
# ISO strict date format
529529
test_expect_success 'ISO and ISO-strict date formats display the same values' '
530-
git log --format=%ai%n%ci |
531-
sed -e "s/ /T/; s/ //; s/..\$/:&/" >expected &&
530+
git log --format=%ad%n%cd --date=iso-strict >expected &&
532531
git log --format=%aI%n%cI >actual &&
533532
test_cmp expected actual
534533
'

0 commit comments

Comments
 (0)