MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / fake_shallow_clone

Function fake_shallow_clone

tests/store_test.py:210–211  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

208
209 # Force shallow clone failure
210 def fake_shallow_clone(self, *args, **kwargs):
211 raise CalledProcessError(1, (), b'', None)
212 store._shallow_clone = fake_shallow_clone
213
214 ret = store.clone(path, rev)

Callers

nothing calls this directly

Calls 1

CalledProcessErrorClass · 0.90

Tested by

no test coverage detected