thecasualcoder/gg

Read git credentials

kishaningithub opened this issue · 5 comments

Actual Behavior
When performing a fetch of several repos that require authentication the following happens

Failed with error: remote authentication required but no callback set

Expected Behavior
It should read credentials from wherever git is reading it from. The catch is this is very much platform specific. The location from where git reads the creds can be found out by running

$ git config credential.helper

For example, in macosx this points to osxkeychain

@jskswamy also mentioned this. Will look into it

Actually currently it only uses this to authenticate. ~/.ssh/id_rsa. If this is cannot be used for a repo it will fail.

Hi @kishaningithub. This should work now. See the ggConf example file to configure the ssh.

Closing this now. Please reopen if any issues occur.

@jskswamy Can you also check if this works for you now?

@jpninanjohn it works without any issue, thanks for the fix