From cde54b28762923eb8b0422cedd786bafb23281b6 Mon Sep 17 00:00:00 2001 From: Jack Wright <56345+ayax79@users.noreply.github.com> Date: Wed, 26 Jun 2024 04:34:03 -0700 Subject: [PATCH] Prevent branch from merging against main (#886) Having the the main branch listed in the checkout command: ```nushell git -C $repo checkout -b $branch nushell/main ``` Made my git to track against the main branch, causing it to push to main instead of a branch. Removing the branch fixed the problem: ```nushell git -C $repo checkout -b $branch ``` --- make_release/release-note/create-pr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make_release/release-note/create-pr b/make_release/release-note/create-pr index c4b08ce03..b084acb11 100755 --- a/make_release/release-note/create-pr +++ b/make_release/release-note/create-pr @@ -100,7 +100,7 @@ by opening PRs against the `release-notes-($version)` branch. git -C $repo remote set-url nushell --push git@github.com:nushell/nushell.github.io.git log info "creating release branch" - git -C $repo checkout -b $branch nushell/main + git -C $repo checkout -b $branch log info "writing release note" $release_note | save --force $blog_path