eclass/git-r3: Sync with Gentoo

It's from Gentoo commit 142a99106adf15e03c3fc45a490730bdb7b56980.
This commit is contained in:
Flatcar Buildbot 2024-01-01 07:12:50 +00:00 committed by Krzesimir Nowak
parent 047d924e09
commit 95974b868a

View File

@ -682,6 +682,8 @@ git-r3_fetch() {
# and HEAD in case we need the default branch
# (we keep it in refs/git-r3 since otherwise --prune interferes)
"+HEAD:refs/git-r3/HEAD"
# fetch the specifc commit_ref to deal with orphan commits
"${remote_ref}"
)
else # single or shallow
local fetch_l fetch_r