mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Change cmd_output_bs retcode arg to a boolean check
This commit is contained in:
parent
71925c47ea
commit
84b38f7b89
15 changed files with 28 additions and 26 deletions
|
|
@ -104,7 +104,7 @@ def test_is_in_merge_conflict_submodule(in_conflicting_submodule):
|
|||
def test_cherry_pick_conflict(in_merge_conflict):
|
||||
cmd_output('git', 'merge', '--abort')
|
||||
foo_ref = cmd_output('git', 'rev-parse', 'foo')[1].strip()
|
||||
cmd_output('git', 'cherry-pick', foo_ref, retcode=None)
|
||||
cmd_output('git', 'cherry-pick', foo_ref, check=False)
|
||||
assert git.is_in_merge_conflict() is False
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue