mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
t9390: expect the correct line count in --strip-blobs-with-ids
In that test case, we expect the line count to be 5, but it is actually
6 lines that we should expect:
numbers/medium.num
numbers/small.num
sequence/know
whatever
words/know
Note the empty line at the top: this list is generated via `git log
--format=%n`, and that `%n` stands for "newline", meaning that we _must_
expect an empty line.
This expectation seems to have been broken already in the commit that
added the test case: b6a35f8
(filter-repo: implement
--strip-blobs-with-ids, 2019-05-30). It was hidden for such a long time
by a broken &&-chain, which we will fix next.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
parent
6c475a7e09
commit
f1ee28d78f
@ -937,7 +937,7 @@ test_expect_success '--strip-blobs-with-ids' '
|
|||||||
git filter-repo --strip-blobs-with-ids ../bad-ids --replace-text ../replace-rules &&
|
git filter-repo --strip-blobs-with-ids ../bad-ids --replace-text ../replace-rules &&
|
||||||
|
|
||||||
git log --format=%n --name-only | sort | uniq >../filenames &&
|
git log --format=%n --name-only | sort | uniq >../filenames &&
|
||||||
test_line_count = 5 ../filenames &&
|
test_line_count = 6 ../filenames &&
|
||||||
! grep sequence/to ../filenames &&
|
! grep sequence/to ../filenames &&
|
||||||
! grep words/to ../filenames &&
|
! grep words/to ../filenames &&
|
||||||
! grep capricious ../filenames &&
|
! grep capricious ../filenames &&
|
||||||
|
Loading…
Reference in New Issue
Block a user