@@ -34,7 +34,7 @@ test_expect_success "proc-receive: bad protocol (unknown version, $PROTOCOL/porc
3434 EOF
3535 test_cmp expect actual-error &&
3636
37- test_cmp_refs -C "$upstream" <<-EOF
37+ test_cmp_refs --git-dir "$upstream" <<-EOF
3838 <COMMIT-A> refs/heads/main
3939 EOF
4040'
@@ -65,7 +65,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-version, $PROTO
6565 grep "remote: fatal: die with the --die-read-version option" out-$test_count &&
6666 grep "remote: error: fail to negotiate version with proc-receive hook" out-$test_count &&
6767
68- test_cmp_refs -C "$upstream" <<-EOF
68+ test_cmp_refs --git-dir "$upstream" <<-EOF
6969 <COMMIT-A> refs/heads/main
7070 EOF
7171'
@@ -96,7 +96,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-write-version, $PROT
9696 grep "remote: fatal: die with the --die-write-version option" out-$test_count &&
9797 grep "remote: error: fail to negotiate version with proc-receive hook" out-$test_count &&
9898
99- test_cmp_refs -C "$upstream" <<-EOF
99+ test_cmp_refs --git-dir "$upstream" <<-EOF
100100 <COMMIT-A> refs/heads/main
101101 EOF
102102'
@@ -126,7 +126,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-commands, $PROT
126126 test_cmp expect actual &&
127127 grep "remote: fatal: die with the --die-read-commands option" out-$test_count &&
128128
129- test_cmp_refs -C "$upstream" <<-EOF
129+ test_cmp_refs --git-dir "$upstream" <<-EOF
130130 <COMMIT-A> refs/heads/main
131131 EOF
132132'
@@ -158,7 +158,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-push-options, $
158158 test_cmp expect actual &&
159159 grep "remote: fatal: die with the --die-read-push-options option" out-$test_count &&
160160
161- test_cmp_refs -C "$upstream" <<-EOF
161+ test_cmp_refs --git-dir "$upstream" <<-EOF
162162 <COMMIT-A> refs/heads/main
163163 EOF
164164'
@@ -188,7 +188,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-write-report, $PROTO
188188 test_cmp expect actual &&
189189 grep "remote: fatal: die with the --die-write-report option" out-$test_count &&
190190
191- test_cmp_refs -C "$upstream" <<-EOF
191+ test_cmp_refs --git-dir "$upstream" <<-EOF
192192 <COMMIT-A> refs/heads/main
193193 EOF
194194'
@@ -223,7 +223,7 @@ test_expect_success "proc-receive: bad protocol (no report, $PROTOCOL/porcelain)
223223 EOF
224224 test_cmp expect actual &&
225225
226- test_cmp_refs -C "$upstream" <<-EOF
226+ test_cmp_refs --git-dir "$upstream" <<-EOF
227227 <COMMIT-A> refs/heads/main
228228 <COMMIT-A> refs/heads/next
229229 EOF
@@ -264,7 +264,7 @@ test_expect_success "proc-receive: bad protocol (no ref, $PROTOCOL/porcelain)" '
264264 EOF
265265 test_cmp expect actual &&
266266
267- test_cmp_refs -C "$upstream" <<-EOF
267+ test_cmp_refs --git-dir "$upstream" <<-EOF
268268 <COMMIT-A> refs/heads/main
269269 EOF
270270'
@@ -298,7 +298,7 @@ test_expect_success "proc-receive: bad protocol (unknown status, $PROTOCOL/porce
298298 EOF
299299 test_cmp expect actual &&
300300
301- test_cmp_refs -C "$upstream" <<-EOF
301+ test_cmp_refs --git-dir "$upstream" <<-EOF
302302 <COMMIT-A> refs/heads/main
303303 EOF
304304'
0 commit comments