From 3e811d6c92b32bdd0eaf9fa370ff220f2b006271 Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 1 Feb 2021 19:51:14 +0100 Subject: [PATCH] prow.sh: fix "on-master" prow jobs The recent introduction of version_to_git broke Prow jobs with CSI_PROW_KUBERNETES_VERSION=latest because that version was first converted to "master" and then once more to "vmaster". The second call must be idempotent because "master" is already a branch name. --- prow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prow.sh b/prow.sh index d43005505..ec695ec6d 100755 --- a/prow.sh +++ b/prow.sh @@ -71,7 +71,7 @@ version_to_git () { version="$1" shift case "$version" in - latest) echo "master";; + latest|master) echo "master";; release-*) echo "$version";; *) echo "v$version";; esac