Fixed
Status Update
Comments
ch...@google.com <ch...@google.com> #2
Thanks for reporting the issue.
Version 119 is somewhat old. The later versions set credential helper differently.
But I believe it still requires gcloud to be on the path.
Let us know if this remains an issue after upgrading to latest version.
Version 119 is somewhat old. The later versions set credential helper differently.
But I believe it still requires gcloud to be on the path.
Let us know if this remains an issue after upgrading to latest version.
ge...@gmail.com <ge...@gmail.com> #3
With version 138 I get the same issue; the credential.helper is by default defined as:
credential.helper=!gcloud auth git-helper --account=email@gmail.com --ignore-unknown $@
credential.helper=!gcloud auth git-helper --account=email@gmail.com --ignore-unknown $@
zj...@google.com <zj...@google.com> #4
The issue here is that we can't use absolute paths everywhere. See, for instance, this post on the Git mailing list: http://git.661346.n2.nabble.com/git-config-credential-helper-with-absolute-path-on-windows-not-working-properly-td7640789.html
They're busted on Windows.
I supposed we could use absolute paths everywhere but Windows.
They're busted on Windows.
I supposed we could use absolute paths everywhere but Windows.
ch...@google.com <ch...@google.com> #5
I see that you have gcloud on your System PATH:
/usr/local/google-cloud-sdk/bin
With Version 138, at very least you should be getting different error message. Can you post it.
If gcloud is on the system path, gcloud source repos clone should work, as well as subsequent git pull/git push.
Can you post output of "git config --list" ?
/usr/local/google-cloud-sdk/bin
With Version 138, at very least you should be getting different error message. Can you post it.
If gcloud is on the system path, gcloud source repos clone should work, as well as subsequent git pull/git push.
Can you post output of "git config --list" ?
ge...@gmail.com <ge...@gmail.com> #6
The error I get in GitHub Desktop with version 138 is:
gcloud auth git-helper --account=myaccount@gmail.com --ignore-unknown $@ get: gcloud: command not found
2017-01-09 18:26:08.748 GitHub Desktop Login[2069:216441] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Username for 'https://source.developers.google.com ': "
)
2017-01-09 18:26:08.779 GitHub Desktop Login[2069:216441] Error getting keychain item forsource.developers.google.com : The specified item could not be found in the keychain.
error: unable to read askpass response from '/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login'
fatal: could not read Username for 'https://source.developers.google.com ': Device not configured
(128)
The output of git config --list is:
credential.helper=osxkeychain
filter.lfs.clean=git-lfs clean %f
filter.lfs.smudge=git-lfs smudge %f
filter.lfs.required=true
user.name =Gerhard Poul
user.email=myaccount@gmail.com
credential.helper=osxkeychain
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
credential.helper=!gcloud auth git-helper --account=myaccount@gmail.com --ignore-unknown $@
remote.origin.url=https://source.developers.google.com/p/lutine-1340/r/default
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Please keep in mind that even if things are on the PATH in Terminal/bash the same is not true for UI-based applications like GitHub Desktop.
gcloud auth git-helper --account=myaccount@gmail.com --ignore-unknown $@ get: gcloud: command not found
2017-01-09 18:26:08.748 GitHub Desktop Login[2069:216441] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Username for '
)
2017-01-09 18:26:08.779 GitHub Desktop Login[2069:216441] Error getting keychain item for
error: unable to read askpass response from '/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login'
fatal: could not read Username for '
(128)
The output of git config --list is:
credential.helper=osxkeychain
filter.lfs.clean=git-lfs clean %f
filter.lfs.smudge=git-lfs smudge %f
filter.lfs.required=true
user.email=myaccount@gmail.com
credential.helper=osxkeychain
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
credential.helper=!gcloud auth git-helper --account=myaccount@gmail.com --ignore-unknown $@
remote.origin.url=
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
Please keep in mind that even if things are on the PATH in Terminal/bash the same is not true for UI-based applications like GitHub Desktop.
ch...@google.com <ch...@google.com> #7
I suppose for you
$ git config --list --system
will show
credential.helper=osxkeychain
Can you unset it via
git config --system --unset credential.helper
so that "git config --list" shows only one credential.helper.
You can continue using Github desktop for other repos by explicitly setting credential.helper on them.
Alternatively, you can try to set PATH system wide not just in the shell.
$ git config --list --system
will show
credential.helper=osxkeychain
Can you unset it via
git config --system --unset credential.helper
so that "git config --list" shows only one credential.helper.
You can continue using Github desktop for other repos by explicitly setting credential.helper on them.
Alternatively, you can try to set PATH system wide not just in the shell.
ge...@gmail.com <ge...@gmail.com> #8
The unset did not fix it, but I was able to remove it from the osx config file where it was sourced from. The output now shows only one credential.helper:
Gerhards-MacBook:default gpoul$ git config --show-origin --get credential.helper
file:.git/config !gcloud auth git-helper --account=gerhard.poul@gmail.com --ignore-unknown $@
But GitHub Desktop still shows the same error saying that the credential.helper of gcloud cannot be found.
ge...@gmail.com <ge...@gmail.com> #10
I'e tested your suggestion and configured it as follows:
Gerhards-MacBook:~ gpoul$ git config --global --get ghfw.disableverification
true
still I have the same issue because the credential.helper cannot be found
Gerhards-MacBook:~ gpoul$ git config --global --get ghfw.disableverification
true
still I have the same issue because the credential.helper cannot be found
ch...@google.com <ch...@google.com> #11
Thanks for checking.
Well try to see if can make gcloud credential helper play with to Github desktop.
I suppose the workaround for you is to set absolute path to gcloud manually or make gcloud to be on the path so it is find-able by Github desktop.
Well try to see if can make gcloud credential helper play with to Github desktop.
I suppose the workaround for you is to set absolute path to gcloud manually or make gcloud to be on the path so it is find-able by Github desktop.
ge...@gmail.com <ge...@gmail.com> #12
This is just a thought, but I think it might work best - if you want it to work out of the box with GitHub desktop - to set it to an absolute path during `gcloud source repos clone <repository>` or put a wrapper script directly on the default $PATH. (the first option would probably be the least intrusive)
ge...@gmail.com <ge...@gmail.com> #13
I have just tested that it works if I set the credential.helper in the repo manually to the following:
credential.helper=!/usr/local/google-cloud-sdk/bin/gcloud auth git-helper --account=account@gmail.com --ignore-unknown $@
credential.helper=!/usr/local/google-cloud-sdk/bin/gcloud auth git-helper --account=account@gmail.com --ignore-unknown $@
zj...@google.com <zj...@google.com>
ch...@google.com <ch...@google.com>
hi...@google.com <hi...@google.com> #14
An option --use-full-gcloud-path was added to the source repos clone command which puts the full path in the credential helper. This should provide a workaround.
Description
1. Perform `gcloud source repos clone <repository>`
2. Open GitHub Desktop
3. Add the repository and sync it. It will fail with the following error:
git: 'credential-gcloud.sh' is not a git command. See 'git --help'.
2016-08-04 07:44:06.598 GitHub Desktop Login[809:15686] AskPass with arguments: (
"/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login",
"Username for '
)
2016-08-04 07:44:06.645 GitHub Desktop Login[809:15686] Error getting keychain item for
error: unable to read askpass response from '/Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop Login'
fatal: could not read Username for '
(128)
What is the expected output? What do you see instead?
It would be great if it would work.
Please provide any additional information below.
Changing the PATH of Mac OS X for GUI applications is only possible through ugly hacks or launching them from a terminal.
The best fix I found was to set a full path in the git configuration as follows and I think this could be easily done while gcloud is cloning it:
git config credential.helper /<PATH-TO-GCLOUD-SDK>/bin/git-credential-gcloud.sh
Installation information:
Google Cloud SDK [119.0.0]
Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Jul 30 2016, 19:40:32) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]]
Python Location: [/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python]
Site Packages: [Disabled]
Installation Root: [/usr/local/google-cloud-sdk]
Installed Components:
core: [2016.07.21]
core-nix: [2016.07.21]
gcloud: []
gsutil-nix: [4.19]
gsutil: [4.19]
bq: [2.0.24]
bq-nix: [2.0.24]
System PATH: [/Users/gpoul/bin:/usr/local/google-cloud-sdk/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin]
Cloud SDK on PATH: [True]
Installation Properties: [/usr/local/google-cloud-sdk/properties]
User Config Directory: [/Users/gpoul/.config/gcloud]
Active Configuration Name: [default]
Active Configuration Path: [/Users/gpoul/.config/gcloud/configurations/config_default]
Account: [gerhard.poul@gmail.com]
Project: [lutine-1340]
Current Properties:
[core]
project: [lutine-1340]
account: [gerhard.poul@gmail.com]
disable_usage_reporting: [False]
Logs Directory: [/Users/gpoul/.config/gcloud/logs]
Last Log File: [None]