Skip to content

Make devtool handle read-only .git/hooks directories

Peter Kjellerstedt openembedded-core 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooksmeta/lib/oe/patch.py+12 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [master, jethro][PATCH 0/1] Make devtool handle read-only .git/hooks directories

When running "devtool extract <recipe> <dir>", it failed for us if the recipe contained any patches. This was due to devtools modification of the commit-msg and applypatch-msg Git hooks.

We have a bit unusal setup where .git/hooks is a symbolic link to a directory in /usr/share, which means that it is not writable by the user. This of course caused devtool to fail when it tried to modify the hooks.

The solution provided here temporarily moves away the .git/hooks directory (or link) instead, which should be safe since the .git directory should be writable.

We also need this applied to Jethro. Do I need to supply a separate patch for that?

//Peter

The following changes since commit 3d2c0f5902cacf9d8544bf263b51ef0dd1a7218c:

cmake: update to 3.4.2 (2016-01-26 22:49:40 +0000)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib pkj/devtool_hooks
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/devtool_hooks

Peter Kjellerstedt (1):
lib/oe/patch: Make GitApplyTree._applypatch() support read-only
.git/hooks

 meta/lib/oe/patch.py | 26 ++++++++++++--------------
 1 file changed, 12 insertions(+), 14 deletions(-)
Signature · 1 line
2.1.0