Commit 3b47f0b
Fix resolveCurrentUpstream to handle slashed remote names
Use 'git config branch.<branch>.remote' to resolve the remote name
instead of splitting the upstream ref on the first '/'. This correctly
handles remotes with slashes in their names (e.g., 'my-org/upstream')
where the old heuristic would parse 'my-org/upstream/feature' as
remoteName='my-org' and upstreamBranch='upstream/feature'.
Co-authored-by: Julius Marminge <[email protected]>1 parent 99483cf commit 3b47f0b
1 file changed
+16
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
337 | | - | |
338 | | - | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
339 | 351 | | |
340 | 352 | | |
341 | | - | |
342 | | - | |
343 | | - | |
| 353 | + | |
| 354 | + | |
344 | 355 | | |
345 | 356 | | |
346 | 357 | | |
| |||
0 commit comments