Commit b5cffd7
authored
Add Repository::runProcess() to expose stderr on successful commands (#247)
Repository::run() only ever returns stdout, even on success. Some git
commands (push, in particular) write their meaningful output to stderr
even when they succeed, so callers had no way to read it (#205).
runProcess() returns the full, already-run Process instead, giving
access to getErrorOutput(). run() now delegates to it and keeps its
exact original behavior.1 parent 9bdf6bd commit b5cffd7
3 files changed
Lines changed: 54 additions & 6 deletions
File tree
- src/Gitonomy/Git
- tests/Gitonomy/Git/Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
249 | 255 | | |
250 | 256 | | |
251 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
473 | 478 | | |
474 | 479 | | |
475 | 480 | | |
| |||
478 | 483 | | |
479 | 484 | | |
480 | 485 | | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
481 | 506 | | |
482 | 507 | | |
483 | 508 | | |
| |||
488 | 513 | | |
489 | 514 | | |
490 | 515 | | |
491 | | - | |
492 | | - | |
493 | 516 | | |
494 | 517 | | |
495 | 518 | | |
496 | 519 | | |
497 | | - | |
| 520 | + | |
498 | 521 | | |
499 | 522 | | |
500 | 523 | | |
| |||
507 | 530 | | |
508 | 531 | | |
509 | 532 | | |
510 | | - | |
511 | | - | |
512 | 533 | | |
513 | 534 | | |
514 | | - | |
| 535 | + | |
515 | 536 | | |
516 | 537 | | |
517 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
33 | 54 | | |
34 | 55 | | |
35 | 56 | | |
| |||
0 commit comments