Re: Using gclient sync with private github repositories

14 views
Skip to first unread message

Ravi Kasibhatla

unread,
Jun 16, 2017, 6:59:59 AM6/16/17
to Chromium-dev, infr...@chromium.org
infr...@chromium.org

On Fri, Jun 16, 2017 at 4:27 PM, Ravi Kasibhatla <kph...@chromium.org> wrote:
Hi,

For a private project based on chromium, I am trying to add a private repository dependency in the DEPS - to be fetched during gclient sync phase.

Being private repo, the user needs to authenticate for cloning start. However, "gclient sync" doesn't stop for authentication and the script fails.

Is there any way for me to get around this issue? Please suggest.

Regards,
Ravi Kasibhatla.

Mostyn Bramley-Moore

unread,
Jun 16, 2017, 7:08:11 AM6/16/17
to Ravi Kasibhatla, Chromium-dev, infr...@chromium.org
I suspect that the simplest solution would be to use ssh git/github URLs
(and not https URLs), and if your local username is different to your
github username then add a Hosts rule in ~/.ssh/config that sets the
User for that Host to your github username.

Then you can use ssh-agent/keychain or similar to login using your
github ssh key.

-Mostyn.
--
Mostyn Bramley-Moore
Opera TV
mos...@opera.com

Ryan Tseng

unread,
Jun 16, 2017, 1:08:20 PM6/16/17
to Mostyn Bramley-Moore, Ravi Kasibhatla, Chromium-dev, infr...@chromium.org
Does "gclient sync -j1" work?



--
You received this message because you are subscribed to the Google Groups "infra-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to infra-dev+unsubscribe@chromium.org.
To post to this group, send email to infr...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/infra-dev/b79d13f9-5283-802a-30f2-2dad0812e1a9%40opera.com.

Reply all
Reply to author
Forward
0 new messages