presslabs / gitium

Keep all your WordPress code on git with a simple plugin and a repo
https://www.presslabs.com/code/gitium/
GNU General Public License v2.0
180 stars 31 forks source link

Plugins and themes deleted when fetch button was pressed #179

Open robertopc opened 5 years ago

robertopc commented 5 years ago

This was happens in my server Centos7 in the Google Cloud Platform. Initially the plugin printed the message of error in execution of the file ssh-inc. I deactivate the selinux temporably with setenforce 0 and clicked in the "Fetch repository". In this moment, majority of the plugins and themes was deleted.

I see in the file inc/class-git-wrapper.php:644 have rm -rf. I suggest to change it, it is too dangerous.

robertopc commented 5 years ago

Screenshot_2019-06-22 Plugins ‹ 4Emotions — WordPress

robertopc commented 5 years ago

Screenshot_2019-06-22 Manage Themes ‹ 4Emotions — WordPress