Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git credential helper docs & support #842

Open
aran opened this issue Feb 23, 2024 · 2 comments
Open

git credential helper docs & support #842

aran opened this issue Feb 23, 2024 · 2 comments

Comments

@aran
Copy link

aran commented Feb 23, 2024

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.

@quark-zju
Copy link
Contributor

quark-zju commented Feb 24, 2024

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.

@aran
Copy link
Author

aran commented Feb 24, 2024

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants