diff --git a/t/t7004-tag.sh b/t/t7004-tag.sh index 606d4f2a2c..a1a69c0380 100755 --- a/t/t7004-tag.sh +++ b/t/t7004-tag.sh @@ -185,8 +185,9 @@ cba EOF test_expect_success \ 'listing tags with substring as pattern must print those matching' ' - git-tag -l "*a*" > actual && - git diff expect actual + rm *a* && + git-tag -l "*a*" > current && + git diff expect current ' cat >expect <