Skip to content

Commit

Permalink
Prevent branch from merging against main (#886)
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
ayax79 authored Jun 26, 2024
1 parent e5388d1 commit cde54b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make_release/release-note/create-pr
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ by opening PRs against the `release-notes-($version)` branch.
git -C $repo remote set-url nushell --push [email protected]: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
Expand Down

0 comments on commit cde54b2

Please sign in to comment.