-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
gitui doesn't honor pushInsteadOf settings #953
Comments
Hm weird this should actually be working correctly since libgit2/libgit2#3048 |
Huh, agreed, that looks like it should prevent this. FWIW my configuration is in |
maybe we can learn anything from delta here: https://github.com/dandavison/delta/pull/694/files |
i believe this is a bug in libgit2, or at least the version currently used in git2-rs. this also seems consistent with what i found in gitui, that the used remote has a |
a related problem is that need_username_password should check the |
|
libgit2/libgit2#6101 would fix this |
libgit2/libgit2#6101 Is merged, now we need to get it into git2-rs upstream |
libgit2 release |
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
this is fixed in v0.21.0 🎉 |
Describe the bug
Pushing to a remote that has a https url ignores an associated pushInsteadOf ssh url and prompts for a username.
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/extrawurst/gitui.git
Expected behavior
gitui uses the configured ssh url and pushes successfully instead of prompting for credentials
Context (please complete the following information):
gitui 0.16.2
(installed with dnf)rustc 1.55.0 (Fedora 1.55.0-1.fc34)
Additional context
Documentation for pushInsteadOf
The text was updated successfully, but these errors were encountered: