/ / Použitie repozitára klonovaného s gcloud source repos nemôže nájsť credential-gcloud.sh - osx-elcapitan, github-desktop

Použitie repozitára klonovaného s repozitívom zdroja gcloud nemôže nájsť credential-gcloud.sh - osx-elcapitan, github-desktop

Pri synchronizácii úložiska na pracovnej ploche GitHub, ktorá bola klonovaná gcloud source repos clone <repository> na Mac OS X 10.11 (El Capitan) nasledujúca chyba:

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 "https://source.developers.google.com": "
)
2016-08-04 07:44:06.645 GitHub Desktop Login[809:15686] Error getting keychain item for source.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)

odpovede:

0 pre odpoveď č. 1

Dôvodom je, že pomocný pomocník git-credential-gcloud.sh dodaný s gcloud SDK nemožno nájsť na PATH.

Našťastie git nie je schopný nielen zavolať a odhaliť pomocníka poverení z PATH, ale tiež prijíma a vyvoláva príkazy, keď je zadaná úplná cesta.

Zmena poverenia.helper z:

credential.helper="gcloud.sh"

na adresu:

credential.helper=/<PATH-TO-GCLOUD-SDK>/bin/git-credential-gcloud.sh

vyvolaním

git config credential.helper /<PATH-TO-GCLOUD-SDK>/bin/git-credential-gcloud.sh

rieši problém pre konkrétny úložisko.