]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Dec 2021 23:36:21 +0000 (23:36 +0000)
commit6184b56a7a0fc6f5d19fdfb81e7453667f7da940
tree8672cdcd4f5fbd89472f7fd85d4d74cabbd05fed
parent088cf642e4a58fd50f93b22b4fdf5a2f25e1ed53
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>
meta/lib/oe/patch.py
meta/lib/oeqa/selftest/cases/bbtests.py