Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [PATCH] GitSync: Support setting environment variables for git
Date: Tue, 06 Jun 2017 02:05:32
Message-Id: CAMiTYSqWOLsMjt4-JRivoNNjYaSZS3sGkMwXDVj3M9KUiDBTTw@mail.gmail.com
In Reply to: Re: [gentoo-portage-dev] [PATCH] GitSync: Support setting environment variables for git by Brian Dolbec
1 On Mon, Jun 5, 2017 at 6:39 AM, Brian Dolbec <dolsen@g.o> wrote:
2
3 > On Mon, 5 Jun 2017 01:40:08 -0700
4 > Zac Medico <zmedico@g.o> wrote:
5 >
6 > > From: Manuel RĂ¼ger <mrueg@g.o>
7 > >
8 > > This can be used to provide private SSH keys to portage in order to
9 > > clone repositories from a non-public repository.
10 > >
11 > > An exemplary usage would be setting this in the repositories'
12 > > repos.conf: sync-git-env = "GIT_SSH_COMMAND=ssh
13 > > -i /etc/portage/.ssh/id_rsa -o
14 > > UserKnownHostsFile=/etc/portage/.ssh/known_hosts" GIT_TRACE=false
15 > > sync-git-pull-env = "GIT_SSH_COMMAND=ssh -i /etc/portage/.ssh/id_rsa
16 > > -o UserKnownHostsFile=/etc/portage/.ssh/known_hosts" GIT_TRACE=true
17 > > sync-git-clone-env = "GIT_SSH_COMMAND=ssh -i /etc/portage/.ssh/id_rsa
18 > > -o UserKnownHostsFile=/etc/portage/.ssh/known_hosts" GIT_TRACE=true
19 > > --- man/portage.5 | 24
20 > > +++++++++++++++++++++++- pym/portage/sync/modules/git/__init__.py |
21 > > 5 ++++- pym/portage/sync/modules/git/git.py | 24
22 > > ++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 4
23 > > deletions(-)
24 >
25 > looks good, Thanks Manuel, Zac
26 >
27
28 Thanks, pushed:
29
30 https://gitweb.gentoo.org/proj/portage.git/commit/?id=8aa1a070921dc643d615a3c38b4f60e55e709850
31 --
32 Thanks,
33 Zac