On Thu, 16 Jun 2016 11:46:12 -0700
Bryan Gardiner <b...@khumba.net> wrote:

> On Thu, 16 Jun 2016 17:52:26 +0200
> ma...@nucleus.it wrote:
> 
> > Hi,
> > i have a layman git profile to store my stuff.
> > 
> > Is possible to force layman -S to sync a specific branch ?  
> 
> This is speculation (and a bit of looking at Portage code), since I
> haven't tried this.  Ignoring Layman, repos.conf repositories support
> syncing[1], so does it work to create:
> 
> /etc/portage/repos.conf/myrepo.conf:
> 
>     [myrepo]
>     location = /path/to/local/repo
>     sync-type = git
>     sync-uri = git://...
>     auto-sync = yes
> 
> and just emerge --sync?  If you didn't have the local repo already
> then it would clone and use master, but I suspect that you can switch
> branches afterward, and Portage will simply call "git pull".
> 
> There also seem to be extra options "sync-git-clone-extra-opts" and
> "sync-git-pull-extra-opts" for git modules, so you might be able to
> set:
> 
>     sync-git-clone-extra-opts = --branch somebranch
> 
> to fix initially checking out master.
> 
> HTH,
> Bryan
> 
> [1] https://wiki.gentoo.org/wiki/Project:Portage/Sync

If you're set on using Layman though, does Layman switch back to master
on every sync, or is it the initial checkout you're concerned about?
Or just a convenience to have Layman switch branches?

- Bryan

-- 
khph - file tagging via symlinks

Attachment: pgpAIgqxvX1ZY.pgp
Description: OpenPGP digital signature

Reply via email to