mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
A few cleanups for CalledProcessError to hopefully make it more readable
This commit is contained in:
parent
83f0802578
commit
b90412742e
4 changed files with 36 additions and 45 deletions
|
|
@ -125,7 +125,7 @@ def test_clone_shallow_failure_fallback_to_complete(
|
|||
|
||||
# Force shallow clone failure
|
||||
def fake_shallow_clone(self, *args, **kwargs):
|
||||
raise CalledProcessError(None, None, None)
|
||||
raise CalledProcessError(None, None, None, None, None)
|
||||
store._shallow_clone = fake_shallow_clone
|
||||
|
||||
ret = store.clone(path, rev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue