Issue with git hooks and partially staged files
The staged changes have correct checksum, and on top the non-staged changes also have correct checksum, but I guess the hook takes one from each or so.
$ git commit --amend
pre-commit: device/testing/linux-postmarketos-qcom-msm8974: bad checksum for file "config-postmarketos-qcom-msm8974.armv7" (hint: run pmbootstrap checksum linux-postmarketos-qcom-msm8974)
$ git status
On branch msm8974-6.4
Your branch is up to date with 'origin/msm8974-6.4'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: APKBUILD
modified: config-postmarketos-qcom-msm8974.armv7
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: APKBUILD
modified: config-postmarketos-qcom-msm8974.armv7
Should probably write down an easy way to reproduce this here... But no time right now.