On Thu, 16 Jun 2016 17:52:26 +0200 [email protected] 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
--
khph - file tagging via symlinks
pgppntJZ9rKPr.pgp
Description: OpenPGP digital signature

