]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3700-add.sh
Merge branch 'sg/t3420-autostash-fix'
[thirdparty/git.git] / t / t3700-add.sh
index 618750167aed8d99a57b2642713d12406cd2e5f6..37729ba2582119047d559d22df8c522f9c0ab0f1 100755 (executable)
@@ -188,9 +188,8 @@ test_expect_success 'git add --refresh with pathspec' '
        git add foo bar baz && H=$(git rev-parse :foo) && git rm -f foo &&
        echo "100644 $H 3       foo" | git update-index --index-info &&
        test-tool chmtime -60 bar baz &&
-       >expect &&
        git add --refresh bar >actual &&
-       test_cmp expect actual &&
+       test_must_be_empty actual &&
 
        git diff-files --name-only >actual &&
        ! grep bar actual&&