Gentoo Archives: gentoo-dev

From: "Frédéric Pierret (fepitre)" <frederic.pierret@××××××××.org>
To: gentoo-dev@l.g.o
Cc: "Frédéric Pierret (fepitre)" <frederic.pierret@××××××××.org>
Subject: [gentoo-dev] [PATCH] git-r3: fetch pullrequest refs on mirror clone type
Date: Wed, 26 Aug 2020 10:09:46
Message-Id: 20200826100933.122871-1-frederic.pierret@qubes-os.org
1 Signed-off-by: Frédéric Pierret (fepitre) <frederic.pierret@××××××××.org>
2 ---
3 eclass/git-r3.eclass | 2 ++
4 1 file changed, 2 insertions(+)
5
6 diff --git a/eclass/git-r3.eclass b/eclass/git-r3.eclass
7 index 6c75d11218c..cda7ac161e9 100644
8 --- a/eclass/git-r3.eclass
9 +++ b/eclass/git-r3.eclass
10 @@ -683,6 +683,8 @@ git-r3_fetch() {
11 "+refs/tags/*:refs/tags/*"
12 # notes in case something needs them
13 "+refs/notes/*:refs/notes/*"
14 + # pullrequest refs are useful for testing incoming changes
15 + "+refs/pull/*/head:refs/pull/*"
16 # and HEAD in case we need the default branch
17 # (we keep it in refs/git-r3 since otherwise --prune interferes)
18 "+HEAD:refs/git-r3/HEAD"
19 --
20 2.25.4