]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooks
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 27 Jan 2016 14:39:52 +0000 (15:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Mar 2016 09:54:53 +0000 (09:54 +0000)
commit09a2718cb030f8cce202ded0e823cadea4c71f6a
treea4d1a4a2cb570ff834309b15bf39a49590f58796
parent883c38cf0e59082276f933f9b47e276b6b88270f
lib/oe/patch: Make GitApplyTree._applypatch() support read-only .git/hooks

Rather than modifying files in .git/hooks, which can be read-only
(e.g., if it is a link to a directory in /usr/share), move away the
entire .git/hooks directory temporarily.

(From OE-Core master rev: a88d603b51a9ebb39210d54b667519acfbe465c3)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/lib/oe/patch.py