It seems that saving a file in the Ghost theme editor removes the .git directory.
To reproduce:
- Create a theme inside the
themes dir and create, inside it, a .git directory (it can be empty)
- Select that theme in the admin UI (in the "Installed" themes tab
- Edit it in the theme editor, and save it
- 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)
It seems that saving a file in the Ghost theme editor removes the
.gitdirectory.To reproduce:
themesdir and create, inside it, a.gitdirectory (it can be empty)ls, you can't, for some reason you have tocd ..andcdback into the theme dir) and thenls -A. The.gitdir is now gone (but not, for example, the.gitignore, if you have one)Originally posted by @filipesmedeiros in #27656 (comment)