Merge pull request #13058 from microsoft/danmihai1/git-remote-show-origin

tests: export target_branch="${branch}"
This commit is contained in:
Steve Horsman
2026-05-17 18:39:12 +01:00
committed by GitHub

View File

@@ -32,6 +32,9 @@ RUNTIME="${RUNTIME:-containerd-shim-kata-v2}"
export branch="${target_branch:-"$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')"}"
# Export target_branch to avoid hitting the remote repository again when this script gets loaded again.
export target_branch="${branch}"
function die() {
local msg="$*"