Openembedded Core Discussions
 help / color / mirror / Atom feed
* [master, jethro][PATCH 0/1] Make devtool handle read-only .git/hooks directories
@ 2016-01-27 14:39 Peter Kjellerstedt
  2016-01-27 14:39 ` [master, jethro][PATCH 1/1] lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooks Peter Kjellerstedt
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Kjellerstedt @ 2016-01-27 14:39 UTC (permalink / raw)
  To: openembedded-core

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(-)

-- 
2.1.0



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-01-27 14:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-27 14:39 [master, jethro][PATCH 0/1] Make devtool handle read-only .git/hooks directories Peter Kjellerstedt
2016-01-27 14:39 ` [master, jethro][PATCH 1/1] lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooks Peter Kjellerstedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox