From 585e35ed433b33b05efab9e086c92582fce6468a Mon Sep 17 00:00:00 2001 From: ethernet Date: Thu, 17 Sep 2026 10:56:04 -0400 Subject: [PATCH] fix(install-e2e): export the real git so the transport check can bypass the shim --- tests/install/e2e-assets/installer-common.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/install/e2e-assets/installer-common.sh b/tests/install/e2e-assets/installer-common.sh index 328230ab5b..312e3a7593 100644 --- a/tests/install/e2e-assets/installer-common.sh +++ b/tests/install/e2e-assets/installer-common.sh @@ -8,6 +8,11 @@ arm_source_redirect() { actual="$(git -C "$repo" remote get-url origin)" real_git="$(command -v git)" quoted_git="$(printf '%q' "$real_git")" + # Export the real git so later checks can observe the TRANSPORT url. After + # this function the shim shadows `git` and reports the official origin for + # `remote get-url origin` (so fork detection sees it); any check that must see + # the file:// redirect instead has to bypass the shim via this path. + export HERMES_E2E_REAL_GIT="$real_git" # A global file survives install.sh replacing GIT_CONFIG_COUNT/KEY_n/VALUE_n. printf '' > "$cfg" for url in "$actual" "$https" "$ssh"; do