list-objects: check if filter is NULL before using
[gitweb.git] / t / t7001-mv.sh
index cbc5fb37fe531ff9a60c236a175fd6a4f29b1ece..f5929c46f3ea7ed6317a77086d6263ac25a4f02b 100755 (executable)
@@ -488,7 +488,7 @@ test_expect_success 'moving a submodule in nested directories' '
                git config -f ../.gitmodules submodule.deep/directory/hierarchy/sub.path >../actual &&
                echo "directory/hierarchy/sub" >../expect
        ) &&
-       test_cmp actual expect
+       test_cmp expect actual
 '
 
 test_expect_failure 'moving nested submodules' '