Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching git branches does not remove empty directories #14

Closed
lottamus opened this issue Jul 29, 2019 · 2 comments
Assignees
Labels

Comments

@lottamus
Copy link
Member

@lottamus lottamus commented Jul 29, 2019

Describe the bug

A directory that exists on the current git branch will show up as an empty folder when switching to a git branch that does not have that same directory.

To Reproduce

  1. Open a git project that has multiple branches
  2. Create a new directory and add a file
  3. Switch to another branch
  4. Notice the directory is still there as an empty folder.

Expected behavior

Directories that do not exist in a git branch should not be displayed in the file tree.

Environment (remove any that are not applicable):

  • Studio version: 1.0.0-beta.8
@lottamus lottamus added the bug label Jul 29, 2019
@lottamus lottamus added this to the August '19 Hardening milestone Jul 29, 2019
@wmhilton wmhilton self-assigned this Jul 29, 2019
@lottamus lottamus removed this from the August '19 Hardening milestone Aug 15, 2019
@wmhilton

This comment has been minimized.

Copy link
Member

@wmhilton wmhilton commented Oct 26, 2019

Note: Between steps 2 and 3 of those reproduction steps, be sure to commit that file. Otherwise it won't be deleted when switching branches at all.

@chris-miaskowski chris-miaskowski self-assigned this Oct 28, 2019
@chris-miaskowski

This comment has been minimized.

Copy link
Member

@chris-miaskowski chris-miaskowski commented Oct 28, 2019

Tests passed on staging. Leaving for @StoplightDeb add tests to TR and then close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.