|
1 | 1 | test_expect_success "setup proc-receive hook (unknown version, $PROTOCOL/porcelain)" ' |
2 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 2 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
3 | 3 | printf >&2 "# proc-receive hook\n" |
4 | 4 | test-tool proc-receive -v --version 2 |
5 | 5 | EOF |
@@ -40,7 +40,7 @@ test_expect_success "proc-receive: bad protocol (unknown version, $PROTOCOL/porc |
40 | 40 | ' |
41 | 41 |
|
42 | 42 | test_expect_success "setup proc-receive hook (hook --die-read-version, $PROTOCOL/porcelain)" ' |
43 | | - test_hook -C "$upstream" --clobber proc-receive <<-EOF |
| 43 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-EOF |
44 | 44 | printf >&2 "# proc-receive hook\n" |
45 | 45 | test-tool proc-receive -v --die-read-version |
46 | 46 | EOF |
@@ -71,7 +71,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-version, $PROTO |
71 | 71 | ' |
72 | 72 |
|
73 | 73 | test_expect_success "setup proc-receive hook (hook --die-write-version, $PROTOCOL/porcelain)" ' |
74 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 74 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
75 | 75 | printf >&2 "# proc-receive hook\n" |
76 | 76 | test-tool proc-receive -v --die-write-version |
77 | 77 | EOF |
@@ -102,7 +102,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-write-version, $PROT |
102 | 102 | ' |
103 | 103 |
|
104 | 104 | test_expect_success "setup proc-receive hook (hook --die-read-commands, $PROTOCOL/porcelain)" ' |
105 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 105 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
106 | 106 | printf >&2 "# proc-receive hook\n" |
107 | 107 | test-tool proc-receive -v --die-read-commands |
108 | 108 | EOF |
@@ -132,7 +132,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-commands, $PROT |
132 | 132 | ' |
133 | 133 |
|
134 | 134 | test_expect_success "setup proc-receive hook (hook --die-read-push-options, $PROTOCOL/porcelain)" ' |
135 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 135 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
136 | 136 | printf >&2 "# proc-receive hook\n" |
137 | 137 | test-tool proc-receive -v --die-read-push-options |
138 | 138 | EOF |
@@ -164,7 +164,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-read-push-options, $ |
164 | 164 | ' |
165 | 165 |
|
166 | 166 | test_expect_success "setup proc-receive hook (hook --die-write-report, $PROTOCOL/porcelain)" ' |
167 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 167 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
168 | 168 | printf >&2 "# proc-receive hook\n" |
169 | 169 | test-tool proc-receive -v --die-write-report |
170 | 170 | EOF |
@@ -194,7 +194,7 @@ test_expect_success "proc-receive: bad protocol (hook --die-write-report, $PROTO |
194 | 194 | ' |
195 | 195 |
|
196 | 196 | test_expect_success "setup proc-receive hook (no report, $PROTOCOL/porcelain)" ' |
197 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 197 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
198 | 198 | printf >&2 "# proc-receive hook\n" |
199 | 199 | test-tool proc-receive -v |
200 | 200 | EOF |
@@ -236,7 +236,7 @@ test_expect_success "cleanup ($PROTOCOL/porcelain)" ' |
236 | 236 | ' |
237 | 237 |
|
238 | 238 | test_expect_success "setup proc-receive hook (no ref, $PROTOCOL/porcelain)" ' |
239 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 239 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
240 | 240 | printf >&2 "# proc-receive hook\n" |
241 | 241 | test-tool proc-receive -v \ |
242 | 242 | -r "ok" |
@@ -270,7 +270,7 @@ test_expect_success "proc-receive: bad protocol (no ref, $PROTOCOL/porcelain)" ' |
270 | 270 | ' |
271 | 271 |
|
272 | 272 | test_expect_success "setup proc-receive hook (unknown status, $PROTOCOL/porcelain)" ' |
273 | | - test_hook -C "$upstream" --clobber proc-receive <<-\EOF |
| 273 | + test_hook --git-dir "$upstream" --clobber proc-receive <<-\EOF |
274 | 274 | printf >&2 "# proc-receive hook\n" |
275 | 275 | test-tool proc-receive -v \ |
276 | 276 | -r "xx refs/for/main/topic" |
|
0 commit comments