summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python-numpy/files/0001-convert-shebang-from-python-to-python3.patch
diff options
context:
space:
mode:
authorNaftaly RALAMBOARIVONY <naftaly.ralamboarivony@smile.fr>2025-10-02 15:10:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-06 17:01:10 +0100
commit4b9e5931d75d5e16fa2a07f4ef1fc19d1455128b (patch)
treeaa5af72fec5476b8ef8f15b17cf42cf954bba8d8 /meta/recipes-devtools/python-numpy/files/0001-convert-shebang-from-python-to-python3.patch
parent4862fafb74662aefef08a50be700100aeab2e756 (diff)
downloadpoky-4b9e5931d75d5e16fa2a07f4ef1fc19d1455128b.tar.gz
patchtest: fix failure when oe-core repo is in detached HEAD
Patchtest fails when oe-core git repo is in a "detached HEAD" state: Error log: > File "/usr/lib/python3/dist-packages/git/repo/base.py", line 881, in active_branch return self.head.reference ^^^^^^^^^^^^^^^^^^^ > File "/usr/lib/python3/dist-packages/git/refs/symbolic.py", line 311, in _get_reference raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha)) TypeError: HEAD is a detached symbolic reference as it points to '3dd31d3b29730fa1130645d76bb71914ac036335' None In this case, no current branch is available for the clean operation. To fix this, updates the checkout logic: - if a current branch is available, use it, - otherwise, fall back to the commit pointed to by HEAD. This ensures that the script works correctly even when HEAD is detached. (From OE-Core rev: 5f2157d1df50a1cc27e85c38c4799f3f50ba1e33) Signed-off-by: Naftaly RALAMBOARIVONY <naftaly.ralamboarivony@smile.fr> Reviewed-by: Yoann Congal <yoann.congal@smile.fr> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python-numpy/files/0001-convert-shebang-from-python-to-python3.patch')
0 files changed, 0 insertions, 0 deletions