nakul
nakul

Reputation: 45

"gcloud source repos clone default local-directory-name" not working

I am trying to clone my project and since the "gcloud init project-name" is deprecated I followed the following steps.

1) "gcloud init" and entered the right options in the interactive menu.

2) "gcloud source repos clone default local-directory-name"

but it keeps asking me for user name and password.

I also executed "gcloud auth login" and "git config credential.helper gcloud.sh" commands

but still asks me for username and password.

Upvotes: 3

Views: 3214

Answers (1)

Zachary Newman
Zachary Newman

Reputation: 21394

This is related to a bug in the Cloud SDK that will be fixed in version 0.9.82.

Apologies for the inconvenience! In the mean time, you should be able to work around by running git clone directly:

> git clone 'https://source.developers.google.com/p/PROJECTID/r/default' --config credential.helper=git-credential-gcloud.cmd

Note: make sure that git-credential-gcloud.cmd is on your %PATH% first, and make sure to substitute your project's ID for PROJECTID.

Upvotes: 2

Related Questions