]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0002-pre-receive-declined.sh
t5411: refactor check of refs using test_cmp_refs
[thirdparty/git.git] / t / t5411 / test-0002-pre-receive-declined.sh
index c5c76bfe934caedbb9b9f43b46ab58f361192c81..0c3490c9b1b4483f68a9d1ea26455a77a934e69c 100644 (file)
@@ -20,12 +20,10 @@ test_expect_success "git-push is declined ($PROTOCOL)" '
         ! [remote rejected] HEAD -> next (pre-receive hook declined)
        EOF
        test_cmp expect actual &&
-       git -C "$upstream" show-ref >out &&
-       make_user_friendly_and_stable_output <out >actual &&
-       cat >expect <<-EOF &&
+
+       test_cmp_refs -C "$upstream" <<-EOF
        <COMMIT-A> refs/heads/main
        EOF
-       test_cmp expect actual
 '
 
 test_expect_success "cleanup ($PROTOCOL)" '