sapling icon indicating copy to clipboard operation
sapling copied to clipboard

git credential helper docs & support

Open aran opened this issue 1 year ago • 2 comments

Sapling appears to work just fine with the git credential helper protocol. For example I can configure the gcloud auth credential helper in ~/.gitconfig and sl clone works.

I can't find any reference to this functionality in the Sapling documentation. All the docs discussing similar features are specific to Github and gh even though the implementation appears to be more general and powerful.

It would be nice to configure a credential helper within the repository-specific {project}/.sl/config rather than globally. I'm not sure if this is documented or supported.

aran avatar Feb 23 '24 03:02 aran

Good point. There is a .sl/git/config (which is considered as impl detail and is likely going to change) that can probably be edited to achieve what you want. Perhaps we should expose an API or config to allow editing Git configs.

quark-zju avatar Feb 24 '24 00:02 quark-zju

For bonus points, let me specify a credential helper inline with a flag to sl clone, use it for the clone operation, and configure the resulting checked out repository to use it going forward :)

aran avatar Feb 24 '24 01:02 aran