]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t2400-worktree-add.sh
t: teach test_cmp_rev to accept ! for not-equals
[thirdparty/git.git] / t / t2400-worktree-add.sh
index e819ba741ec96018755a08ef956998edfdd1dcc4..52d476979b6bf17261a9fbb89890850ffe4a2593 100755 (executable)
@@ -438,7 +438,7 @@ test_expect_success 'git worktree add does not match remote' '
                cd foo &&
                test_must_fail git config "branch.foo.remote" &&
                test_must_fail git config "branch.foo.merge" &&
-               ! test_cmp_rev refs/remotes/repo_a/foo refs/heads/foo
+               test_cmp_rev ! refs/remotes/repo_a/foo refs/heads/foo
        )
 '
 
@@ -483,7 +483,7 @@ test_expect_success 'git worktree --no-guess-remote option overrides config' '
                cd foo &&
                test_must_fail git config "branch.foo.remote" &&
                test_must_fail git config "branch.foo.merge" &&
-               ! test_cmp_rev refs/remotes/repo_a/foo refs/heads/foo
+               test_cmp_rev ! refs/remotes/repo_a/foo refs/heads/foo
        )
 '