Bug 15369

Summary: bitbake fails to download new srcrev from premirror if clonedir exists
Product: [Build System, Metadata & Runtime] BitBake Reporter: Pavel Zhukov <pavel>
Component: bitbakeAssignee: Pavel Zhukov <pavel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: 5.0   
Target Milestone: 5.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know
Attachments:
Description Flags
irc conversation none

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.