Skip to content

Commit 1ef3bd3

Browse files
committed
Merge branch 'dl/format-patch-doc-test-cleanup'
test cleanup. * dl/format-patch-doc-test-cleanup: t4014: treat rev-list output as the expected value
2 parents eb3de5b + 756fb0d commit 1ef3bd3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/t4014-format-patch.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,8 +1610,9 @@ test_expect_success 'format-patch format.outputDirectory option' '
16101610
test_config format.outputDirectory patches &&
16111611
rm -fr patches &&
16121612
git format-patch master..side &&
1613-
git rev-list master..side >list &&
1614-
test_line_count = $(ls patches | wc -l) list
1613+
count=$(git rev-list --count master..side) &&
1614+
ls patches >list &&
1615+
test_line_count = $count list
16151616
'
16161617

16171618
test_expect_success 'format-patch -o overrides format.outputDirectory' '

0 commit comments

Comments
 (0)