John "codefu" McDole a9ea4b4126
fix: support older git (ubuntu 22.04) in content hash (#176321)
content aware hash was using --format which isn't present in older, but
still supported operating systems. this pr removes the format string
which basically reduces the output before hasing to:

```shell
100644 blob 198d80926b6e873c327f71350a0cdefee6a8402f	DEPS
040000 tree 139c1f10f92e4b9d4ac3ec7d4d27b2aa9775c5cd	engine
```

this format is still stable across all platforms and passed into `git
hash-object` - which produces the actual hash fingerprint of the engine.

safety: this is the only scripts that produce this hash, so all
downstream consumers keep consuming a sha1 output. Since this changes
the sha, an engine version shouldn't exist for it and cocoon will build
the artifacts for it.

fixes: #175265
2025-10-04 02:43:22 +00:00
..