diff mbox series

[yocto-autobuilder-helper] config.json: auh: remove the git hook that disables commits

Message ID 20260116100024.3644730-1-alex.kanavin@gmail.com
State New
Headers show
Series [yocto-autobuilder-helper] config.json: auh: remove the git hook that disables commits | expand

Commit Message

Alexander Kanavin Jan. 16, 2026, 10 a.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

bitbake-setup adds this hook to prevent commits in git checkouts
as such commits can be overwritten on bitbake-setup updates, but auh
does need to make commits there and isn't using update functionality.
Rather than make a separate writeable clone, let's just remove the
hook before starting auh.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 config.json | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/config.json b/config.json
index 3229cde..4f6d305 100644
--- a/config.json
+++ b/config.json
@@ -1625,6 +1625,7 @@ 
                     "git -C ../layers/openembedded-core config user.email auh@yoctoproject.org",
                     "git -C ../layers/openembedded-core config user.name 'Auto Upgrade Helper'",
                     "git -C ../layers/openembedded-core switch -C tmp-auh-upgrades HEAD",
+                    "rm -f ../layers/openembedded-core/.git/hooks/pre-commit",
                     "install -D ${SCRIPTSDIR}/auh-config/upgrade-helper.conf ./upgrade-helper/upgrade-helper.conf"
                 ]
             },