t2200, t7004: Avoid glob pattern that also matches files
[gitweb.git] / t / t7004-tag.sh
index 06e6e179f3fc15698d9dbcecd207fa13a9c2b770..1c27ffb45effdafaace54a29c3ce63f07d6899e6 100755 (executable)
@@ -185,8 +185,9 @@ cba
 EOF
 test_expect_success \
        'listing tags with substring as pattern must print those matching' '
-       git tag -l "*a*" > actual &&
-       test_cmp expect actual
+       rm *a* &&
+       git tag -l "*a*" > current &&
+       test_cmp expect current
 '
 
 cat >expect <<EOF