Skip to content

github.com project: folder mentioned in .gitignore is lost on page reload #1775

@cristianbogdan

Description

@cristianbogdan

Describe the bug

I have a src folder in gitignore, and it is occasionally lost when I reload the ~/github.com/ stackblitz

stackblitz/core#3301

Link to the blitz that caused the error

https://stackblitz.com/~/github.com/kth-csc-iprog/unit-tests?file=package.json&view=editor

Steps to reproduce

  1. In stackblitz dashboard, look at github repositories. In my case it is an organization repository: https://stackblitz.com/orgs/github/kth-csc-iprog/repositories
  2. Open a repo
  3. Add a folder like "src" to .gitignore
  4. Commit and push .gitignore
  5. drag and drop a folder with that name from the OS desktop
  6. reload page. The folder will not show up. It seems to be treated similar to node_modules (which is most often in .gitignore)
  7. remove the folder from .gitignore. Commit and push
  8. drag and drop a folder with that name from the OS desktop
  9. reload page. The folder is now shown, now it is not lost between reloads. Or not always at least

Expected behavior

If the ~/github.com/ blitzes are merely supposed to be "an editor of what's in github" this is probably correct behavior. But this is very confusing because other blitzes do not lose files/folders like that.

Parity with Local

Screenshots

No response

Platform

I tested this in several chrome browsers, older and newer.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions