Skip to content

check the on-disk state before performing Git operations - #5300

Merged
iAmWillShepherd merged 4 commits into
masterfrom
check-before-refresh
Aug 1, 2018
Merged

iAmWillShepherd merged 4 commits into
masterfrom
check-before-refresh

Conversation

@shiftkey

@shiftkey shiftkey commented Jul 31, 2018 •

Copy link
Copy Markdown
Member

🌵 🌵 🌵 depends on #5299 and #5298 and #5297, go review those first 🌵 🌵 🌵

Fixes #5289 by adding guard checks inside AppStore._refreshRepository.

  • merge master once dependent fixes have been merged

Test matrix to cover as part of reviewing:

All of these start with the user adding a problem repository to Desktop

  • Scenario The First

    • user selects this repository in Desktop
    • user renames directory outside Desktop
    • user switches back to Desktop
    • 💥 ❓
  • Scenario The Second

    • user selects another repository in Desktop
    • user renames directory outside Desktop
    • user switches back to Desktop
    • user selects problem repository
    • 💥 ❓
  • Scenario The Third

    • user selects this repository in Desktop
    • user renames .git directory outside Desktop
    • user switches back to Desktop
    • 💥 ❓
  • Scenario The Fourth

    • user selects another repository in Desktop
    • user renames .git directory outside Desktop
    • user switches back to Desktop
    • user selects problem repository
    • 💥 ❓

I'd love to avoid calling this so often, but we can review the work being done in here after ensuring we handle these corner cases about the underlying filesystem.

@shiftkey shiftkey added this to the 1.3.2 milestone Jul 31, 2018
@shiftkey
shiftkey force-pushed the check-before-refresh branch from 7e5af57 to de92040 Compare July 31, 2018 13:40
@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 31, 2018
@shiftkey

shiftkey commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

🌔

@shiftkey

shiftkey commented Aug 1, 2018

Copy link
Copy Markdown
Member Author

FYI @desktop/core I'd love to get this out today for testing and verification and close out #5291 and #5289 as soon as possible

@iAmWillShepherd iAmWillShepherd self-assigned this Aug 1, 2018

@iAmWillShepherd iAmWillShepherd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirmed all test cases and works fine.

@iAmWillShepherd
iAmWillShepherd merged commit 61e7808 into master Aug 1, 2018
@iAmWillShepherd
iAmWillShepherd deleted the check-before-refresh branch August 1, 2018 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants