Skip to content
Commit 6184b56a authored by Pavel Zhukov's avatar Pavel Zhukov Committed by Richard Purdie
Browse files

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: default avatarPavel Zhukov <pavel.zhukov@huawei.com>
Signed-off-by: default avatarRichard Purdie <richard.purdie@linuxfoundation.org>
parent 088cf642
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment