From c9ba41d002dff3eb552161ea56fbc7defdab672b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Wed, 2 Nov 2022 10:25:20 -0700 Subject: [PATCH] Fix errors in bump-zed-minor-versions script Co-authored-by: Joseph Lyons --- script/bump-zed-minor-versions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/bump-zed-minor-versions b/script/bump-zed-minor-versions index d63210d4f3..2ec9ad2988 100755 --- a/script/bump-zed-minor-versions +++ b/script/bump-zed-minor-versions @@ -16,6 +16,7 @@ if [[ $(git rev-parse --abbrev-ref HEAD) != "main" ]]; then fi git pull -q --ff-only origin main git fetch --tags +cargo check -q # Parse the current version version=$(script/get-crate-version zed) @@ -75,6 +76,7 @@ git commit -q --all --message "${prev_minor_branch_name} stable" git tag ${stable_tag_name} echo "Creating new preview branch ${minor_branch_name}..." +git checkout -q main git checkout -q -b ${minor_branch_name} echo -n preview > crates/zed/RELEASE_CHANNEL git commit -q --all --message "${minor_branch_name} preview"