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 tests t0303-credential-external fail "Cannot prompt because user interactivity has been disabled" #1451

Open
hickford opened this issue Oct 26, 2023 · 0 comments · May be fixed by #1465
Assignees

Comments

@hickford
Copy link
Contributor

hickford commented Oct 26, 2023

Git includes a set of tests for credential helpers https://github.com/git/git/blob/master/t/t0303-credential-external.sh

This is a tool for authors of external helper tools to sanity-check their helpers.

I tried to test GCM with cache store choosing appropriate non-interactive options:

GIT_TEST_CREDENTIAL_HELPER=manager GCM_CREDENTIAL_STORE=cache GCM_GUI_PROMPT=0 GCM_INTERACTIVE=never GCM_AUTODETECT_TIMEOUT=0 ./t0303-credential-external.sh -v

15 of 21 tests fail.

10 tests fail because GCM prints an unexpected line to stderr "Cannot prompt because user interactivity has been disabled.". t0303-credential-external.sh assumes that a helper exits silently status 0 if it can't find a credential. This is the behaviour of other helpers including credential-cache and credential-store.

5 tests fail for various more interesting reasons.

If possible, it would be nice to change GCM to exit silently status 0 like other helpers. Alternatively, define a GCM_SILENT_EXIT option with this behaviour.

@hickford hickford changed the title Error "Cannot prompt because user interactivity has been disabled" when Git tests t0303-credential-external fail "Cannot prompt because user interactivity has been disabled" Oct 26, 2023
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 a pull request may close this issue.

2 participants