dgtized / github-clone.el

Fork and clone Github projects from Emacs
58 stars 14 forks source link

Store authentication data in `~/.emacs.d` #2

Closed swsnr closed 1 year ago

swsnr commented 9 years ago

I don't think that the Git configuration file is the right place to store authentication data. It's git's configuration after all, and not that of an Emacs extension. FWIW, hub doesn't do this either, and saves its token to ~/.config/hub instead.

Can I customize this package to store the username and token in a file within ~/.emacs.d/?

dgtized commented 9 years ago

github-clone is actually dependent on gh.el for the decision on where to store the token. If there is a way to hint gh.el to store it elsewhere then I can add documentation for that method, but at the moment it just uses whatever gh.el's default is. See https://github.com/sigma/gh.el, and specifically https://github.com/sigma/gh.el/blob/master/gh-auth.el for more details.