Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Fix race condition when fetching from and deleting a temporary remote #1250

Merged
merged 2 commits into from
Oct 10, 2017

Conversation

jcansdale
Copy link
Collaborator

@jcansdale jcansdale commented Oct 5, 2017

This fixes an issue where a remote was sometimes deleted before a PR had finnished being fetched from it. It failed a lot on large repos but seemed to work on smaller ones.

This issue can be easily reproduced as follows:

  1. Clone new repository.
    git clone https://github.com/bitcoin/bitcoin.git
  2. Launch Visual Studio 2017 and File > Open > Folder... and select the bitcoin folder.
  3. Open GitHub pane (via Team Explorer > Pull Requests).
  4. Select a PR. If that works, try the next one...

image

BTW, bitcoin/bitcoin is a good test for a repo with a whole bunch of PRs.

Fixes #1249

Copy link
Contributor

@meaghanlewis meaghanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! All PR's I viewed with error before are now appearing just fine. I tested PR's in the gitcoin and github repositories.

@jcansdale jcansdale merged commit 3f8e31d into master Oct 10, 2017
@jcansdale jcansdale deleted the fixes/1249-temp-remote branch October 10, 2017 13:04
jcansdale added a commit that referenced this pull request Oct 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Errors when viewing PR detail from external contributor
2 participants