]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0001-standard-git-push--porcelain.sh
test: refactor to use "get_abbrev_oid" to get abbrev oid
[thirdparty/git.git] / t / t5411 / test-0001-standard-git-push--porcelain.sh
index 2078d0a027775e9efc5f387e0db0b35114f217e6..373ec3d865dba30a8aca2c4944a636843d5482e7 100644 (file)
@@ -15,7 +15,7 @@ test_expect_success "git-push ($PROTOCOL/porcelain)" '
        > remote: post-receive< <COMMIT-A> <COMMIT-B> refs/heads/main        Z
        > remote: post-receive< <ZERO-OID> <COMMIT-A> refs/heads/next        Z
        > To <URL/of/upstream.git>
-       >       <COMMIT-B>:refs/heads/main      <OID-A>..<OID-B>
+       >       <COMMIT-B>:refs/heads/main      <COMMIT-A>..<COMMIT-B>
        > *     HEAD:refs/heads/next    [new branch]
        > Done
        EOF
@@ -71,7 +71,7 @@ test_expect_success "non-fast-forward git-push ($PROTOCOL/porcelain)" '
        > remote: # post-receive hook        Z
        > remote: post-receive< <COMMIT-A> <COMMIT-B> refs/heads/next        Z
        > To <URL/of/upstream.git>
-       >       <COMMIT-B>:refs/heads/next      <OID-A>..<OID-B>
+       >       <COMMIT-B>:refs/heads/next      <COMMIT-A>..<COMMIT-B>
        > !     refs/heads/main:refs/heads/main [rejected] (non-fast-forward)
        > Done
        EOF
@@ -109,7 +109,7 @@ test_expect_success "git-push -f ($PROTOCOL/porcelain)" '
        > remote: post-receive< <ZERO-OID> <COMMIT-A> refs/review/main/topic        Z
        > remote: post-receive< <ZERO-OID> <COMMIT-A> refs/heads/a/b/c        Z
        > To <URL/of/upstream.git>
-       > +     refs/heads/main:refs/heads/main <OID-B>...<OID-A> (forced update)
+       > +     refs/heads/main:refs/heads/main <COMMIT-B>...<COMMIT-A> (forced update)
        > -     :refs/heads/next        [deleted]
        > *     refs/tags/v123:refs/tags/v123   [new tag]
        > *     refs/heads/main:refs/review/main/topic  [new reference]