On Wed, Jan 31, 2018 at 09:32:39PM -0500, Lucas Ramage wrote:
> Hello,
> 
> Is there a way to specify a branch in repos.conf/overlay_name.conf?
The source of Portage's pym/portage/sync/modules/git/git.py contains
this comment:
def update(self):
        ''' Update existing git repository, and ignore the syncuri. We are
        going to trust the user and assume that the user is in the branch
        that he/she wants updated. We'll let the user manage branches with
        git directly.
        '''

To that end, I think the answer is no.

If this were to change, there are a bunch of questions that would need 
agreement in how they are answered:
- if the repo's remote URI has changed, should we update the git checkout's
  remote URI from sync-uri? (what if there are multiple remotes in the 
checkout?)
- if the repo's branch has changed in the config, should we update the 
checkout's branch?

-- 
Robin Hugh Johnson
Gentoo Linux: Dev, Infra Lead, Foundation Treasurer
E-Mail   : robb...@gentoo.org
GnuPG FP : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
GnuPG FP : 7D0B3CEB E9B85B1F 825BCECF EE05E6F6 A48F6136

Reply via email to