|
24 | 24 | end
|
25 | 25 |
|
26 | 26 | submodule = repo do
|
27 |
| - `git submodule add #{nested_submodule} nested-sub 2>&1 > #{File::NULL}` |
| 27 | + `git -c protocol.file.allow=always submodule add \ |
| 28 | + #{nested_submodule} nested-sub 2>&1 > #{File::NULL}` |
28 | 29 | `git commit -m "Add nested submodule"`
|
29 | 30 | end
|
30 | 31 |
|
31 | 32 | repo do
|
32 |
| - `git submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
| 33 | + `git -c protocol.file.allow=always submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
33 | 34 | example.run
|
34 | 35 | end
|
35 | 36 | end
|
|
150 | 151 | end
|
151 | 152 |
|
152 | 153 | before do
|
153 |
| - `git submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
| 154 | + `git -c protocol.file.allow=always submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
154 | 155 | end
|
155 | 156 |
|
156 | 157 | it { should_not include File.expand_path('sub') }
|
|
178 | 179 | `git commit --allow-empty -m "Submodule commit"`
|
179 | 180 | end
|
180 | 181 |
|
181 |
| - `git submodule add #{submodule} #{submodule_dir} 2>&1 > #{File::NULL}` |
| 182 | + `git -c protocol.file.allow=always submodule add \ |
| 183 | + #{submodule} #{submodule_dir} 2>&1 > #{File::NULL}` |
182 | 184 | `git commit -m "Add submodule"`
|
183 | 185 | end
|
184 | 186 |
|
|
282 | 284 | touch 'tracked'
|
283 | 285 | `git add tracked`
|
284 | 286 | `git commit -m "Initial commit"`
|
285 |
| - `git submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
| 287 | + `git -c protocol.file.allow=always submodule add #{submodule} sub 2>&1 > #{File::NULL}` |
286 | 288 | touch 'staged'
|
287 | 289 | `git add staged`
|
288 | 290 | example.run
|
|
327 | 329 | end
|
328 | 330 |
|
329 | 331 | repo do
|
330 |
| - `git submodule add #{submodule} sub-repo 2>&1 > #{File::NULL}` |
| 332 | + `git -c protocol.file.allow=always submodule add #{submodule} sub-repo 2>&1 > #{File::NULL}` |
331 | 333 | `git commit -m "Initial commit"`
|
332 | 334 | example.run
|
333 | 335 | end
|
|
343 | 345 | `git commit --allow-empty -m "Another submodule"`
|
344 | 346 | end
|
345 | 347 |
|
346 |
| - `git submodule add #{another_submodule} another-sub-repo 2>&1 > #{File::NULL}` |
| 348 | + `git -c protocol.file.allow=always submodule add \ |
| 349 | + #{another_submodule} another-sub-repo 2>&1 > #{File::NULL}` |
347 | 350 | end
|
348 | 351 |
|
349 | 352 | it { should be_empty }
|
|
369 | 372 | `git commit --allow-empty -m "Another submodule"`
|
370 | 373 | end
|
371 | 374 |
|
372 |
| - `git submodule add #{another_submodule} yet-another-sub-repo 2>&1 > #{File::NULL}` |
| 375 | + `git -c protocol.file.allow=always submodule add \ |
| 376 | + #{another_submodule} yet-another-sub-repo 2>&1 > #{File::NULL}` |
373 | 377 | `git commit -m "Add yet another submodule"`
|
374 | 378 | `git rm sub-repo`
|
375 | 379 | `git rm yet-another-sub-repo`
|
|
0 commit comments