Skip to contentSkip to conversation

config.json: auh: remove the git hook that disables commits

PATCH New Alexander Kanavin 1 participant 1 message Jan 16

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.json: auh: remove the git hook that disables commits

From: Alexander Kanavin <[email protected]>

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.

---
 config.json | 1 +
 1 file changed, 1 insertion(+)
config.json +1 -0
index 3229cde..4f6d305 100644
@@ -1625,6 +1625,7 @@
                     "git -C ../layers/openembedded-core config user.email [email protected]",
                     "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"
                 ]
             },
Signature · 1 line
2.47.2