Bug 15369 - bitbake fails to download new srcrev from premirror if clonedir exists
Summary: bitbake fails to download new srcrev from premirror if clonedir exists
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 5.0 M4
Assignee: Pavel Zhukov
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-01-26 11:42 UTC by Pavel Zhukov
Modified: 2024-02-01 15:37 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments
irc conversation (6.15 KB, text/plain)
2024-01-26 11:42 UTC, Pavel Zhukov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Zhukov 2024-01-26 11:42:46 UTC
Created attachment 5008 [details]
irc conversation

if premirror's shallow clone contains SRCREV but the one in download dir doesn't then premirror is not used for downloading but upstream instead.

Reported in irc. See attachement
Comment 1 Pavel Zhukov 2024-01-26 12:58:41 UTC
The problem is in this call:
https://github.com/yoctoproject/poky/blob/master/bitbake/lib/bb/fetch2/git.py#L378

FETCH_HEAD is not part of "git branch --contains" lookup.