Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 02 Sep 2020 10:45:31
Message-Id: 1599043514.eaa81841e6d318fc492362c494869070ce9b57ce.mgorny@gentoo
1 commit: eaa81841e6d318fc492362c494869070ce9b57ce
2 Author: Frédéric Pierret (fepitre) <frederic.pierret <AT> qubes-os <DOT> org>
3 AuthorDate: Wed Aug 26 09:07:52 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 10:45:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eaa81841
7
8 git-r3.eclass: fetch pullrequest refs on mirror clone type
9
10 Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret <AT> qubes-os.org>
11 Closes: https://github.com/gentoo/gentoo/pull/17265
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 eclass/git-r3.eclass | 2 ++
15 1 file changed, 2 insertions(+)
16
17 diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
18 index 6c75d11218c..cda7ac161e9 100644
19 --- a/eclass/git-r3.eclass
20 +++ b/eclass/git-r3.eclass
21 @@ -683,6 +683,8 @@ git-r3_fetch() {
22 "+refs/tags/*:refs/tags/*"
23 # notes in case something needs them
24 "+refs/notes/*:refs/notes/*"
25 + # pullrequest refs are useful for testing incoming changes
26 + "+refs/pull/*/head:refs/pull/*"
27 # and HEAD in case we need the default branch
28 # (we keep it in refs/git-r3 since otherwise --prune interferes)
29 "+HEAD:refs/git-r3/HEAD"