commit:     eaa81841e6d318fc492362c494869070ce9b57ce
Author:     Frédéric Pierret (fepitre) <frederic.pierret <AT> qubes-os <DOT> 
org>
AuthorDate: Wed Aug 26 09:07:52 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep  2 10:45:14 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaa81841

git-r3.eclass: fetch pullrequest refs on mirror clone type

Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret <AT> qubes-os.org>
Closes: https://github.com/gentoo/gentoo/pull/17265
Signed-off-by: Michał Górny <mgorny <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 6c75d11218c..cda7ac161e9 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"

Reply via email to