Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: create pr with upstream remote now works #775

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lua/octo/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,12 @@ function M.create_pr(is_draft)
end
repo = remotes[remote_idx].repo
else
repo = utils.get_remote_name()
-- Override the precedence of get_remote, because otherwise upstream is selected
-- and the check if the local branch creates on the repo fails.
repo = utils.get_remote_name { "origin" }
if not repo then
repo = utils.get_remote_name()
end
if not repo then
utils.error "Cant find repo name"
return
Expand Down