Skip to content

Commit 0e8e076

Browse files
rybakgitster
authored andcommitted
t1404: don't create unused file
Some tests in file t1404-update-ref-errors.sh create file "unchanged" as the expected side for a test_cmp assertion at the end of the test for output of "git for-each-ref". The filename conveys the expectation that the output won't change between two invocations of "git for-each-ref". Test 'no bogus intermediate values during delete' also creates a file named "unchanged". However, in this test the reference is being deleted, i.e. it _does change_. The file itself isn't used for any assertions in the test. Don't create the unused and slightly misleading file "unchanged". Signed-off-by: Andrei Rybak <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 77f9d40 commit 0e8e076

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

t/t1404-update-ref-errors.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,6 @@ test_expect_success REFFILES 'no bogus intermediate values during delete' '
551551
git update-ref $prefix/foo $C &&
552552
git pack-refs --all &&
553553
git update-ref $prefix/foo $D &&
554-
git for-each-ref $prefix >unchanged &&
555554
# Now try to update the reference, but hold the `packed-refs` lock
556555
# for a while to see what happens while the process is blocked:
557556
: >.git/packed-refs.lock &&

0 commit comments

Comments
 (0)