]> code.ossystems Code Review - openembedded-core.git/commit
patch.py: Initialize git repo before patching
authorPavel Zhukov <pavel.zhukov@huawei.com>
Thu, 2 Dec 2021 07:56:04 +0000 (08:56 +0100)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 10 Dec 2021 04:28:43 +0000 (12:28 +0800)
commitc3e8317b15b1b78511a6f9aedfed54b59ab6972f
treed4ea7a8c770be1c074a21102323f6ea4c2212ed2
parent39e5b3b37c3a0116fb01be6183b320d9afea3bfe
patch.py: Initialize git repo before patching

If PATCHTOOL="git" has been specified but workdir is not git repo
bitbake fails to apply the patches with error message:
Command Error: 'git rev-parse --show-toplevel' exited with 0  Output:
fatal: not a git repository (or any of the parent directories): .git

Fix this by initializing the repo before patching.
This allows binary git patches to be applied.

Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 6184b56a7a0fc6f5d19fdfb81e7453667f7da940)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/lib/oe/patch.py
meta/lib/oeqa/selftest/cases/bbtests.py