commit: 142a99106adf15e03c3fc45a490730bdb7b56980 Author: Alfred Wingate <parona <AT> protonmail <DOT> com> AuthorDate: Wed Nov 22 11:40:52 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Dec 20 13:41:02 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=142a9910
git-r3.eclass: fetch remote_ref in the mirror clone type * Handles scenarios where commits in submodules are orphaned. Closes: https://bugs.gentoo.org/917746 Bug: https://bugs.gentoo.org/503332 Signed-off-by: Alfred Wingate <parona <AT> protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33935 Signed-off-by: Sam James <sam <AT> gentoo.org> eclass/git-r3.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass index a08845364296..de89fdc3a223 100644 --- a/eclass/git-r3.eclass +++ b/eclass/git-r3.eclass @@ -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