MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / verify_checkout

Function verify_checkout

tools/materialize-bench/imported_guest.py:86–89  ·  view source on GitHub ↗
(repo, manifest)

Source from the content-addressed store, hash-verified

84
85
86def verify_checkout(repo, manifest):
87 for file in manifest['files']:
88 if hashlib.sha256(file_bytes(repo / file['path'], file['mode'])).hexdigest() != file['sha256']:
89 raise ValueError('checkout bytes differ: ' + file['path'])
90
91
92def immutable_changes_digest(repo):

Callers 1

prepareFunction · 0.85

Calls 1

file_bytesFunction · 0.70

Tested by

no test coverage detected