luci.mk: add reproducibility by setting specific version hash length
authorPaul Spooren <redacted>
Wed, 17 Jun 2026 10:15:38 +0000 (12:15 +0200)
committerChristian Marangi <redacted>
Thu, 18 Jun 2026 10:10:53 +0000 (12:10 +0200)
commit2f30690fe019d6caf8f51d49d56c28df32b80932
tree6a3dc7032fa0634c5946333c22fb1c441079b88b
parent8049a746dc85bb22b1f07986981a2c6d84a59893
luci.mk: add reproducibility by setting specific version hash length

The `git branch` feature may return different hash length, resulting in
reproducibility issues.

│ │ ├── ./usr/share/ucode/luci/version.uc
│ │ │ @@ -1 +1 @@
│ │ │ -export const revision = '26.133.20346~e9ebca7', branch = 'LuCI (HEAD detached at e9ebca7) branch';
│ │ │ +export const revision = '26.133.20346~e9ebca7', branch = 'LuCI (HEAD detached at e9ebca75) branch';

Since `git branch` does not support `--abbrev=7` like `git log` does, use `-c
core.abbrev=7`.

Signed-off-by: Paul Spooren <redacted>
luci.mk
git clone https://git.99rst.org/PROJECT