mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-02 07:02:16 +00:00
Merge pull request #13058 from microsoft/danmihai1/git-remote-show-origin
tests: export target_branch="${branch}"
This commit is contained in:
@@ -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="$*"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user