Skip to content

Saving the theme in the new editor seems to remove some directories #27980

@filipesmedeiros

Description

@filipesmedeiros

It seems that saving a file in the Ghost theme editor removes the .git directory.

To reproduce:

  1. Create a theme inside the themes dir and create, inside it, a .git directory (it can be empty)
  2. Select that theme in the admin UI (in the "Installed" themes tab
  3. Edit it in the theme editor, and save it
  4. Go back to the theme dir (and if you try to ls, you can't, for some reason you have to cd .. and cd back into the theme dir) and then ls -A. The .git dir is now gone (but not, for example, the .gitignore, if you have one)

Originally posted by @filipesmedeiros in #27656 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs:triage[triage] this needs to be triaged by the Ghost team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions