]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0032-report-with-options.sh
receive-pack: feed report options to post-receive
[thirdparty/git.git] / t / t5411 / test-0032-report-with-options.sh
index a743aa80183e703e0729d216e0fcfe8f6aa7f6ea..c559c207faa853f7b8b778a76f4da0a37b8a3bd8 100644 (file)
@@ -54,7 +54,7 @@ test_expect_success "proc-receive: report option refname ($PROTOCOL)" '
        remote: proc-receive> ok refs/for/master/topic
        remote: proc-receive> option refname refs/pull/123/head
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/pull/123/head
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/master/topic
        EOF
@@ -87,7 +87,7 @@ test_expect_success "proc-receive: report option refname and forced-update ($PRO
        remote: proc-receive> option refname refs/pull/123/head
        remote: proc-receive> option forced-update
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/pull/123/head
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/master/topic
        EOF
@@ -121,7 +121,7 @@ test_expect_success "proc-receive: report option refname and old-oid ($PROTOCOL)
        remote: proc-receive> option refname refs/pull/123/head
        remote: proc-receive> option old-oid <COMMIT-B>
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <COMMIT-B> <COMMIT-A> refs/pull/123/head
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/master/topic
        EOF
@@ -153,7 +153,7 @@ test_expect_success "proc-receive: report option old-oid ($PROTOCOL)" '
        remote: proc-receive> ok refs/for/master/topic
        remote: proc-receive> option old-oid <COMMIT-B>
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <COMMIT-B> <COMMIT-A> refs/for/master/topic
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/master/topic
        EOF
@@ -187,7 +187,7 @@ test_expect_success "proc-receive: report option old-oid and new-oid ($PROTOCOL)
        remote: proc-receive> option old-oid <COMMIT-A>
        remote: proc-receive> option new-oid <COMMIT-B>
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <COMMIT-A> <COMMIT-B> refs/for/master/topic
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/master/topic
        EOF
@@ -237,9 +237,9 @@ test_expect_success "proc-receive: report with multiple rewrites ($PROTOCOL)" '
        remote: proc-receive> option forced-update
        remote: proc-receive> option new-oid <COMMIT-A>
        remote: # post-receive hook
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/next/topic
+       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/pull/123/head
        remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/a/b/c/topic
-       remote: post-receive< <ZERO-OID> <COMMIT-A> refs/for/master/topic
+       remote: post-receive< <COMMIT-B> <COMMIT-A> refs/pull/124/head
        To <URL/of/upstream.git>
         * [new reference] HEAD -> refs/for/next/topic
         * [new reference] HEAD -> refs/for/a/b/c/topic