defunkt / gist.el

Yet another Emacs paste mode, this one for Gist.
550 stars 90 forks source link

oauth token is not picked up from ~/.gitconfig_local file #95

Closed lislon closed 7 years ago

lislon commented 7 years ago

I want to use 2 separete gitconfig files (version control and local), but gist doesn't see my oauth token file when it's located in included file.

I have the following ~/.gitconfig file:

[include]
  path = ~/.gitconfig_local

And my ~/.gitconfig_local:

[github]
  oauth-token = my-long-token-here

I found out there is option --includes for git config command, which lookup values in includes too.

git config --global github.oauth-token              # doesn't work
git config --global --includes github.oauth-token   # works

Can you fix this pls?

sigma commented 7 years ago

I'm puzzled because

So it seems to me that if you make sure you have the right (upstream) version of gh.el installed, it should just work. Please let me know if I'm missing something