1 |
I have a profile for my config , additional ebuilds , packages etc but |
2 |
i'm looking for the best way to have a production-profile and a |
3 |
devel-profile. |
4 |
|
5 |
Better have two separeted git , one for production and one for devel ? |
6 |
or better one git and use branch functions ? |
7 |
|
8 |
With Layman and two git repo i can sync each repo when i want and i can |
9 |
enable/disable one of them to switch from/to production/devel . |
10 |
|
11 |
|
12 |
I don't know how to do that directly with git. |
13 |
|
14 |
Best regards |
15 |
Marco |
16 |
|
17 |
|
18 |
|
19 |
|
20 |
On Thu, 16 Jun 2016 11:46:12 -0700 |
21 |
Bryan Gardiner <bog@××××××.net> wrote: |
22 |
|
23 |
> On Thu, 16 Jun 2016 17:52:26 +0200 |
24 |
> marco@×××××××.it wrote: |
25 |
> |
26 |
> > Hi, |
27 |
> > i have a layman git profile to store my stuff. |
28 |
> > |
29 |
> > Is possible to force layman -S to sync a specific branch ? |
30 |
> |
31 |
> This is speculation (and a bit of looking at Portage code), since I |
32 |
> haven't tried this. Ignoring Layman, repos.conf repositories support |
33 |
> syncing[1], so does it work to create: |
34 |
> |
35 |
> /etc/portage/repos.conf/myrepo.conf: |
36 |
> |
37 |
> [myrepo] |
38 |
> location = /path/to/local/repo |
39 |
> sync-type = git |
40 |
> sync-uri = git://... |
41 |
> auto-sync = yes |
42 |
> |
43 |
> and just emerge --sync? If you didn't have the local repo already |
44 |
> then it would clone and use master, but I suspect that you can switch |
45 |
> branches afterward, and Portage will simply call "git pull". |
46 |
> |
47 |
> There also seem to be extra options "sync-git-clone-extra-opts" and |
48 |
> "sync-git-pull-extra-opts" for git modules, so you might be able to |
49 |
> set: |
50 |
> |
51 |
> sync-git-clone-extra-opts = --branch somebranch |
52 |
> |
53 |
> to fix initially checking out master. |
54 |
> |
55 |
> HTH, |
56 |
> Bryan |
57 |
> |
58 |
> [1] https://wiki.gentoo.org/wiki/Project:Portage/Sync |
59 |
> |