summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFrédéric Pierret (fepitre) <frederic.pierret@qubes-os.org>2020-08-26 11:07:52 +0200
committerMichał Górny <mgorny@gentoo.org>2020-09-02 12:45:14 +0200
commiteaa81841e6d318fc492362c494869070ce9b57ce (patch)
treeb509834734e12c9afa99632a97b1fa0f5c21b95d /eclass
parentnet-dns/hash-slinger: added py3.8 impl (diff)
downloadgentoo-eaa81841e6d318fc492362c494869070ce9b57ce.tar.gz
gentoo-eaa81841e6d318fc492362c494869070ce9b57ce.tar.bz2
gentoo-eaa81841e6d318fc492362c494869070ce9b57ce.zip
git-r3.eclass: fetch pullrequest refs on mirror clone type
Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@qubes-os.org> Closes: https://github.com/gentoo/gentoo/pull/17265 Signed-off-by: Michał Górny <mgorny@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 6c75d11218ce..cda7ac161e92 100644
--- a/eclass/git-r3.eclass
+++ b/eclass/git-r3.eclass
@@ -683,6 +683,8 @@ git-r3_fetch() {
"+refs/tags/*:refs/tags/*"
# notes in case something needs them
"+refs/notes/*:refs/notes/*"
+ # pullrequest refs are useful for testing incoming changes
+ "+refs/pull/*/head:refs/pull/*"
# 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"