Skip to main content

require_sha1_object_format

Function require_sha1_object_format 

Source
pub fn require_sha1_object_format(output: &[u8]) -> Result<(), GitSnapshotError>
Expand description

Require exact sha1 output from the private repository object-format probe.

Callers must obtain output from git rev-parse --show-object-format through the fixed isolated Git runner before hashing or importing any snapshot object.

ยงErrors

Returns GitSnapshotError::UnsupportedObjectFormat for anything other than exact sha1.