Skip to content

fix: suppress git auth prompts in test helpers#2807

Merged
steveyegge merged 1 commit intosteveyegge:mainfrom
quad341:fix/test-no-auth-prompt
Mar 27, 2026
Merged

fix: suppress git auth prompts in test helpers#2807
steveyegge merged 1 commit intosteveyegge:mainfrom
quad341:fix/test-no-auth-prompt

Conversation

@quad341
Copy link
Contributor

@quad341 quad341 commented Mar 24, 2026

Summary

  • Set GIT_TERMINAL_PROMPT=0, SSH_ASKPASS=, GIT_ASKPASS= in test command environments
  • Prevents GUI auth popups (ksshaskpass on KDE, Credential Manager on Windows) when E2E tests configure fake git remotes like github.com/test/repo.git
  • Cross-platform safe — these are git-native env vars

Test plan

  • go build ./... compiles clean
  • No auth popups during E2E test execution on KDE/Linux

🤖 Generated with Claude Code

E2E tests that configure fake git remotes (github.com/test/repo.git)
trigger SSH_ASKPASS/ksshaskpass GUI popups on KDE systems. Set
GIT_TERMINAL_PROMPT=0, SSH_ASKPASS=, GIT_ASKPASS= in test command
environments to prevent this.

Cross-platform safe — these are git-native env vars.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@quad341 quad341 force-pushed the fix/test-no-auth-prompt branch from 24ec6ab to 8bfb83f Compare March 24, 2026 16:35
@steveyegge steveyegge merged commit 47cff1d into steveyegge:main Mar 27, 2026
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