Commit 4cc41f8
committed
run-task: clean up subprocess usage in _clean_git_checkout
This was copied from `run_command` in
8d7d8b1, but some stuff doesn't make
sense here:
- we don't stream the output to our log so we don't need to disable
buffering or go through a TextIOWrapper
- we don't want to pass our stdin to the command
Instead we can use subprocess.run and let it capture stdout and check
the returncode.1 parent 8f23f5f commit 4cc41f8
1 file changed
+4
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
600 | | - | |
| 600 | + | |
601 | 601 | | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 602 | + | |
608 | 603 | | |
609 | 604 | | |
| 605 | + | |
610 | 606 | | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
615 | | - | |
616 | 607 | | |
617 | 608 | | |
618 | 609 | | |
619 | | - | |
| 610 | + | |
620 | 611 | | |
621 | 612 | | |
622 | 613 | | |
| |||
0 commit comments