summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlfred Wingate <parona@protonmail.com>2023-11-22 13:40:52 +0200
committerSam James <sam@gentoo.org>2023-12-20 13:41:02 +0000
commit142a99106adf15e03c3fc45a490730bdb7b56980 (patch)
tree75c71b96ed5627b0e19d851a677023d3bf11ad34 /eclass
parentx11-plugins/wmifinfo: add 0.11 (diff)
downloadgentoo-142a99106adf15e03c3fc45a490730bdb7b56980.tar.gz
gentoo-142a99106adf15e03c3fc45a490730bdb7b56980.tar.bz2
gentoo-142a99106adf15e03c3fc45a490730bdb7b56980.zip
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@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33935 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/git-r3.eclass2
1 files changed, 2 insertions, 0 deletions
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