Skip to content

test: set GIT_SSH_COMMAND in V2 remote-fetch test#38

Merged
Patel230 merged 1 commit into
mainfrom
fix/v2-remote-fetch-test-ssh-command
Jun 16, 2026
Merged

test: set GIT_SSH_COMMAND in V2 remote-fetch test#38
Patel230 merged 1 commit into
mainfrom
fix/v2-remote-fetch-test-ssh-command

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

The test fakes GIT_SSH to intercept git fetch over SSH, but the host environment exports GIT_SSH_COMMAND (which takes priority over GIT_SSH), so git was using the real ssh binary and getting a real GitHub 404.

Set GIT_SSH_COMMAND to the same fake script so the test is deterministic across environments.

The test fakes GIT_SSH to intercept git fetch over SSH, but the
host environment exports GIT_SSH_COMMAND (which takes priority over
GIT_SSH), so git was using the real ssh binary and getting a real
GitHub 404. Set GIT_SSH_COMMAND to the same fake script so the test
is deterministic across environments.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
@Patel230 Patel230 merged commit 9bc68a7 into main Jun 16, 2026
12 checks passed
@Patel230 Patel230 deleted the fix/v2-remote-fetch-test-ssh-command branch June 16, 2026 11:58
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.

1 participant