Fix detecting PR for current branch pushed to fork#567
Conversation
Now passing base repo as reference to `prSelectorForCurrentBranch()` so that it doesn't have to (inexactly) determine the base repo itself and risk it being different than the base repo determined during `pr status/view`.
|
@mislav this doesn't work for my test forked repo, the Actually in my testing the other day, I've found that git remote add upstream git://github.com/username/base-repo.git
git branch -u upstream/test-branchSince I'm not an expert in working with forked repos, I just assumed this was expected. Because Hope this helps! |
|
@rista404 Ah, so it didn't work when your branch didn't have upstream configuration, but it started working after you added upstream configuration with |
Now passing base repo as reference to
prSelectorForCurrentBranch()so that it doesn't have to (inexactly) determine the base repo itself and risk it being different than the base repo determined duringpr status/viewmain command logic.Fixes #561, closes #566