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
{{ message }}
Repository navigation
optimization: avoid a fetch when checkout out a pull request #4068
In #4057@niik mentions an opportunity to avoid a fetch if we know the branch exists:
// TODO: I think we could skip this fetch if we know that we have the branch locally// already. That way we'd match the behavior of checking out a branch.if(defaultRemote){awaitthis._fetchRemote(repository,defaultRemote,FetchType.UserInitiatedTask)}
I'll let @niik add any additional thoughts on the best approach here.
Activity
agisilaos commentedon Feb 24, 2018
Would be more than happy to pick this up @shiftkey 💯
agisilaos commentedon Feb 24, 2018
@shiftkey Is it possible to report the comment above as spam? because I don't have this option available.

iAmWillShepherd commentedon Feb 27, 2018
@agisilaos. Go for it! I'll add it to our project board for tracking issues our community have claimed.
agisilaos commentedon Mar 2, 2018
@niik Before I start working on this, I would love to know your additional thoughts or any other info that may help me during the process.
iAmWillShepherd commentedon Mar 2, 2018
@agisilaos , when you open your PR, can you be sure to include
Fixes #4068at the top of the PR body?agisilaos commentedon Mar 2, 2018
Of course 🌮 @iAmWillShepherd
niik commentedon Mar 12, 2018
I believe I was referring to using the same logic that already exists in the forked-case:
desktop/app/src/lib/stores/app-store.ts
Lines 3323 to 3333 in 321c3de
So I'd say the work consists of extracting that logic into something reusable and then verifying that my assumption was correct in the first place.
agisilaos commentedon Mar 14, 2018
Just finished working on this one. Will create a PR soon @niik!
agisilaos commentedon Mar 14, 2018
PR #4240 is up! 💯