Reputation: 126
I've got a git repository in Google's Cloud Platform. I'm trying to clone it into a local git report like this:
git config credential.helper gcloud.sh
gcloud source repos clone myrepository --project=myprojectid
It's giving me this error:
ERROR: (gcloud.source.repos.clone) Could not find gcloud's git credential helper. Please make sure the Cloud SDK bi
n folder is in PATH.
I've verified that gcloud is in $PATH:
> which gcloud
/usr/bin/gcloud
This is a new GCE instance of SUSE. Works on mac but not on this SUSE server.
Any ideas?
Upvotes: 0
Views: 923
Reputation: 21394
The Cloud SDK's bin folder needs to be in $PATH
, not just gcloud
.
/usr/bin/gcloud
is likely either a symlink or a wrapper script that points to a full, google-cloud-sdk
installation directory. You need to add google-cloud-sdk/bin
to your path, since that's where the credential helper is.
(This is due to a limitation in the git-credential-helper model.
Upvotes: 1