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

Prompt for credentials when needed #715

Merged
merged 6 commits into from
Nov 7, 2022

Conversation

Ralith
Copy link
Contributor

@Ralith Ralith commented Nov 6, 2022

Terminal password prompts don't go through Ui because that undermines rpassword's facility for suppressing terminal echo. Not sure it's worth hacking around that, since the terminal's a global resource anyway.

In the long run I'd like to move away from basically aping libgit2 in favor of a more composable async API, but that's major refactoring that shouldn't block basic UI cleanup.

I couldn't come up with a graceful way to prompt for usernames via pinentry, so it's relegated to the password-only case.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)

@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch 2 times, most recently from 3409cb6 to 3ba6597 Compare November 6, 2022 19:16
@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch 3 times, most recently from 6e44e10 to 7826738 Compare November 6, 2022 20:20
lib/src/git.rs Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
src/commands.rs Show resolved Hide resolved
src/progress.rs Outdated Show resolved Hide resolved
src/commands.rs Show resolved Hide resolved
@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch 4 times, most recently from fdbbbf9 to 4f7b296 Compare November 7, 2022 00:31
src/ui.rs Outdated Show resolved Hide resolved
@martinvonz
Copy link
Member

Thanks!

@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch 2 times, most recently from d2121d3 to 62b9387 Compare November 7, 2022 00:46
@Ralith Ralith enabled auto-merge (rebase) November 7, 2022 00:47
@Ralith Ralith disabled auto-merge November 7, 2022 00:47
@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch from 62b9387 to fc01b9b Compare November 7, 2022 00:50
@Ralith Ralith enabled auto-merge (rebase) November 7, 2022 00:50
@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch 2 times, most recently from fcbacdc to 1e2db76 Compare November 7, 2022 01:07
@Ralith Ralith force-pushed the push-6e530c6d8d5d45c2ba31769267ded2db branch from 1e2db76 to a31aa1c Compare November 7, 2022 01:17
@Ralith Ralith merged commit 135e4d6 into jj-vcs:main Nov 7, 2022
@Ralith Ralith deleted the push-6e530c6d8d5d45c2ba31769267ded2db branch November 7, 2022 01:31
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

Successfully merging this pull request may close these issues.

2 participants