Repository navigation
Commit fd5016a
committed
fix(server): keep a gh-resolved base distinct from the sole fork remote
When the only remote is a fork and `gh repo set-default` points it at the
parent (remote.<name>.gh-resolved = OWNER/REPO), the fork was taken as the
target repository. The head then looked same-repository and gh pr create got
a bare branch instead of owner:branch.
Read the target remote's gh-resolved value and use the named repository as
the target when it is set; `base` keeps the remote itself.1 parent c1a439d commit fd5016a
2 files changed
Lines changed: 53 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3895 | 3895 | | |
3896 | 3896 | | |
3897 | 3897 | | |
| 3898 | + | |
| 3899 | + | |
| 3900 | + | |
| 3901 | + | |
| 3902 | + | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
| 3906 | + | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
| 3912 | + | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
| 3920 | + | |
| 3921 | + | |
| 3922 | + | |
| 3923 | + | |
| 3924 | + | |
| 3925 | + | |
| 3926 | + | |
| 3927 | + | |
| 3928 | + | |
| 3929 | + | |
3898 | 3930 | | |
3899 | 3931 | | |
3900 | 3932 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1401 | 1401 | | |
1402 | 1402 | | |
1403 | 1403 | | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
| 1422 | + | |
1404 | 1423 | | |
1405 | 1424 | | |
1406 | 1425 | | |
| |||
1409 | 1428 | | |
1410 | 1429 | | |
1411 | 1430 | | |
1412 | | - | |
| 1431 | + | |
1413 | 1432 | | |
1414 | 1433 | | |
1415 | 1434 | | |
| |||
1440 | 1459 | | |
1441 | 1460 | | |
1442 | 1461 | | |
1443 | | - | |
| 1462 | + | |
1444 | 1463 | | |
1445 | 1464 | | |
1446 | 1465 | | |
| |||
0 commit comments