Skip to content

pull-request -p pushes to upstream instead of origin #2451

@lorthirk

Description

@lorthirk

Command attempted:
❯ hub pull-request -p

What happened:
After writing the PR text, the branch got pushed to upstream instead of origin:

❯ git pull-request -p
Enumerating objects: 30, done.
Counting objects: 100% (30/30), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (16/16), 1.12 KiB | 575.00 KiB/s, done.
Total 16 (delta 6), reused 0 (delta 0)
remote: Resolving deltas: 100% (6/6), completed with 6 local objects.
remote:
remote: Create a pull request for 'fix-restDatastoreContentType' on GitHub by visiting:
remote:      https://github.com/eclipse/kapua/pull/new/fix-restDatastoreContentType
remote:
To github.com:eclipse/kapua
 * [new branch]          HEAD -> fix-restDatastoreContentType
Branch 'fix-restDatastoreContentType' set up to track remote branch 'fix-restDatastoreContentType' from 'upstream'.
https://github.com/eclipse/kapua/pull/2834

More info:

❯ git remote -v
origin	[email protected]:lorthirk/kapua.git (fetch)
origin	[email protected]:lorthirk/kapua.git (push)
upstream	[email protected]:eclipse/kapua.git (fetch)
upstream	[email protected]:eclipse/kapua.git (push)
hub --version
git version 2.25.0
hub version 2.13.0

on macOS 10.15.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions