Skip to content

Commit

Permalink
generate_helm_release: use -B for checkout
Browse files Browse the repository at this point in the history
use git checkout -B so that checkout does not fail if the branch exists
already.

Signed-off-by: Kornilios Kourtis <[email protected]>
  • Loading branch information
kkourt committed Dec 13, 2024
1 parent 52ae38b commit 2d68295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_helm_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ main() {
git stash
remote=$(git remote -v | grep "${ORG}/${PROJECT}" | awk '{print $1;exit}')
git fetch "${remote}"
git checkout -b "$version"
git checkout -B "$version"
cd -
else
git clone --depth 1 --branch "$version" "https://github.com/cilium/${PROJECT}.git"
Expand Down

0 comments on commit 2d68295

Please sign in to comment.