You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@niik and I talked about this yesterday and agreed that for 1.1, checking out the PR ref is the best route forward. That means we'll also need to explicitly fetch the PR ref (e.g., git fetch origin pull/:pr_number/head).
Activity
joshaber commentedon Nov 21, 2017
Probably we should add the fork's remote and then check out the ref? This could be a bummer since your list of remotes will grow over time.
We could check out the pull request ref, but then we couldn't push to it if it allowed maintainer collaboration.
@desktop/core @desktop/design Thoughts?
joshaber commentedon Dec 6, 2017
@niik and I talked about this yesterday and agreed that for 1.1, checking out the PR ref is the best route forward. That means we'll also need to explicitly fetch the PR ref (e.g.,
git fetch origin pull/:pr_number/head).shiftkey commentedon Dec 7, 2017
Some prior art: the "Clone in Desktop" flow handles PRs from forks.
desktop/app/src/lib/dispatcher/dispatcher.ts
Lines 889 to 910 in dd54f83
Feel free to steal liberally.
Add remote if PR is from remote - step1
iAmWillShepherd commentedon Dec 14, 2017
Something to consider is if a user adds a remote under our namespace then the URL may not be what we expect, what do we do?
Also Windows has a path length limit, our remote names could cause problems.