Closed mbrevoort closed 9 years ago
Also, is there a way for gb vendor
to user my ssh key and clone over ssh rather than asking me for credentials every time?
Somewhat related (with two factor auth disabled), it also seems to ask me for credentials twice and then each time for a recursive dependency.
➜ utx-social-files git:(master) ✗ gb vendor fetch github.com/RobotsAndPencils/file-upload-helper/upload
Username for 'https://github.com': mbrevoort
Password for 'https://mbrevoort@github.com':
Username for 'https://github.com': mbrevoort
Password for 'https://mbrevoort@github.com':
fetching recursive dependency github.com/RobotsAndPencils/file-upload-helper/s3
Username for 'https://github.com': mbrevoort
Password for 'https://mbrevoort@github.com':
Username for 'https://github.com': mbrevoort
Password for 'https://mbrevoort@github.com':
Thanks for the report. I do not know offhand if we even try the git+ssh scheme by default. The problem with probing for schemes is the correct order depends on your point of view -- most people want https to be proved first, and that will succeed, but will prompt you for credentials often.
On Thu, 30 Jul 2015 07:19 Mike Brevoort notifications@github.com wrote:
Also, is there a way for gb vendor to user my ssh key and clone over ssh rather than asking me for credentials every time?
— Reply to this email directly or view it on GitHub https://github.com/constabulary/gb/issues/282#issuecomment-126098512.
That behaviour is because we probe, then checkout. See previous discussion of auto detecting the scheme.
On Thu, 30 Jul 2015 07:30 Mike Brevoort notifications@github.com wrote:
Somewhat related (with two factor auth disabled), it also seems to ask me for credentials twice and then each time for a recursive dependency.
➜ utx-social-files git:(master) ✗ gb vendor fetch github.com/RobotsAndPencils/file-upload-helper/upload
Username for 'https://github.com': mbrevoort Password for 'https://mbrevoort@github.com': Username for 'https://github.com': mbrevoort Password for 'https://mbrevoort@github.com'
: fetching recursive dependency github.com/RobotsAndPencils/file-upload-helper/s3
Username for 'https://github.com': mbrevoort Password for 'https://mbrevoort@github.com': Username for 'https://github.com': mbrevoort Password for 'https://mbrevoort@github.com':
— Reply to this email directly or view it on GitHub https://github.com/constabulary/gb/issues/282#issuecomment-126101333.
I disabled Github two factor auth and fetched a private repo successfully:
Then I re-enabled Github two factor auth and
gb vendor fetch
fails for the same private repo