]> 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>
Tue, 7 Dec 2021 06:57:35 +0000 (14:57 +0800)
commit4b567a984fe805b779bc59ce32635d32618e7170
tree68c1290cfe478303cddf783cb5be2a55e7e31b12
parentaaaf763acfca236654e299d3be6a9484355e3be9
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