Gentoo Archives: gentoo-dev

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Gentoo Overlay Git: Feature Branches
Date: Thu, 01 Feb 2018 05:31:11
Message-Id: robbat2-20180201T052752-102205874Z@orbis-terrarum.net
In Reply to: [gentoo-dev] Gentoo Overlay Git: Feature Branches by Lucas Ramage
1 On Wed, Jan 31, 2018 at 09:32:39PM -0500, Lucas Ramage wrote:
2 > Hello,
3 >
4 > Is there a way to specify a branch in repos.conf/overlay_name.conf?
5 The source of Portage's pym/portage/sync/modules/git/git.py contains
6 this comment:
7 def update(self):
8 ''' Update existing git repository, and ignore the syncuri. We are
9 going to trust the user and assume that the user is in the branch
10 that he/she wants updated. We'll let the user manage branches with
11 git directly.
12 '''
13
14 To that end, I think the answer is no.
15
16 If this were to change, there are a bunch of questions that would need agreement in how they are answered:
17 - if the repo's remote URI has changed, should we update the git checkout's
18 remote URI from sync-uri? (what if there are multiple remotes in the checkout?)
19 - if the repo's branch has changed in the config, should we update the checkout's branch?
20
21 --
22 Robin Hugh Johnson
23 Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
24 E-Mail : robbat2@g.o
25 GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
26 GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

Replies

Subject Author
Re: [gentoo-dev] Gentoo Overlay Git: Feature Branches Georgy Yakovlev <ya@×××××××.net>