|
23 | 23 | context 'when amending a commit using a git alias' do
|
24 | 24 | around do |example|
|
25 | 25 | repo do
|
26 |
| - `git config alias.amend 'commit --amend'` |
27 |
| - `git config alias.other-amend 'commit --amend'` |
| 26 | + `git config alias.amend "commit --amend"` |
| 27 | + `git config alias.other-amend "commit --amend"` |
28 | 28 | example.run
|
29 | 29 | end
|
30 | 30 | end
|
|
183 | 183 | `git submodule add #{submodule} sub > #{File::NULL} 2>&1`
|
184 | 184 | `git commit -m "Add submodule"`
|
185 | 185 | `echo "Hello World" > sub/submodule-file`
|
186 |
| - `git submodule foreach 'git add submodule-file'` |
187 |
| - `git submodule foreach 'git commit -m "Another commit"'` |
| 186 | + `git submodule foreach "git add submodule-file"` |
| 187 | + `git submodule foreach "git commit -m \\"Another commit\\""` |
188 | 188 | `git add sub`
|
189 | 189 | example.run
|
190 | 190 | end
|
|
333 | 333 | `git submodule add #{submodule} sub > #{File::NULL} 2>&1`
|
334 | 334 | `git commit -m "Add submodule"`
|
335 | 335 | `echo "Hello World" > sub/submodule-file`
|
336 |
| - `git submodule foreach 'git add submodule-file'` |
337 |
| - `git submodule foreach 'git commit -m "Another commit"'` |
| 336 | + `git submodule foreach "git add submodule-file"` |
| 337 | + `git submodule foreach "git commit -m \\"Another commit\\""` |
338 | 338 | `git add sub`
|
339 | 339 | example.run
|
340 | 340 | end
|
|
357 | 357 | `git submodule add #{submodule} sub > #{File::NULL} 2>&1`
|
358 | 358 | `git commit -m "Add submodule"`
|
359 | 359 | `echo "Hello World" > sub/submodule-file`
|
360 |
| - `git submodule foreach 'git add submodule-file'` |
361 |
| - `git submodule foreach 'git commit -m "Another commit"'` |
| 360 | + `git submodule foreach "git add submodule-file"` |
| 361 | + `git submodule foreach "git commit -m \\"Another commit\\""` |
362 | 362 | `echo "Hello Again" > tracked-file`
|
363 | 363 | `git add sub tracked-file`
|
364 | 364 | example.run
|
|
445 | 445 | repo do
|
446 | 446 | FileUtils.touch('some-file')
|
447 | 447 | `git add some-file`
|
448 |
| - `git commit -m 'Initial commit'` |
| 448 | + `git commit -m "Initial commit"` |
449 | 449 | `echo Hello > some-file`
|
450 | 450 | `git add some-file`
|
451 | 451 | example.run
|
|
460 | 460 | repo do
|
461 | 461 | FileUtils.touch('some-file')
|
462 | 462 | `git add some-file`
|
463 |
| - `git commit -m 'Initial commit'` |
| 463 | + `git commit -m "Initial commit"` |
464 | 464 | `git rm some-file`
|
465 | 465 | example.run
|
466 | 466 | end
|
|
474 | 474 | repo do
|
475 | 475 | FileUtils.touch('some-file')
|
476 | 476 | `git add some-file`
|
477 |
| - `git commit -m 'Initial commit'` |
| 477 | + `git commit -m "Initial commit"` |
478 | 478 | FileUtils.touch('other-file')
|
479 | 479 | `git add other-file`
|
480 | 480 | example.run
|
|
0 commit comments