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