Current Behaviour
When cloning a theme repo in the .explorer folder using the dev command, the .git folder is unnecessarily dragged in. This causes a problem because it contains a few read-only files that require sudo permissions to delete. Therefore, cleaning up the .explorer folder requires admin privilege.
Desired Behaviour
The .explorer folder should not contain the .git folder. We would need to clone a theme repository in a temporary folder and then copy all files, except the .git folder, to the .explorer folder.
Other alternatives were looked at, such as downloading a repository zip file, which I am uncertain would work with GitHub authentication.
We should also ensure that the .explorer folder gets cleaned up before each execution. This was previously problematic, considering that the .git folder was in the way.
Current Behaviour When cloning a theme repo in the .explorer folder using the dev command, the .git folder is unnecessarily dragged in. This causes a problem because it contains a few read-only files that require sudo permissions to delete. Therefore, cleaning up the .explorer folder requires admin privilege.
Desired Behaviour The .explorer folder should not contain the .git folder. We would need to clone a theme repository in a temporary folder and then copy all files, except the .git folder, to the .explorer folder.
Other alternatives were looked at, such as downloading a repository zip file, which I am uncertain would work with GitHub authentication.
We should also ensure that the .explorer folder gets cleaned up before each execution. This was previously problematic, considering that the .git folder was in the way.