OpenInternet / copilot

An easy to use censorship simulating access point in a box
https://openinternet.github.io/copilot/
GNU Lesser General Public License v3.0
26 stars 2 forks source link

If a.git directory exists in the plugin directory it will test every .git sub-directory as a possible plugin. #126

Open seamustuohy opened 8 years ago

seamustuohy commented 8 years ago

The get_plugins function will iterate through the various levels of the .git directory unnecessarily.. This will need to be addressed before we can implement issue #124

seamustuohy commented 8 years ago

It turns out that this was not the issue. It should still be addressed because it iterates over every sub-directory of the .git folder, but it does not cause a crash or any other side-effects I can identify.

seamustuohy commented 8 years ago

To fix this I suggest having the path walk ignore any directories named .git. This should limit the extraneous debug messages and extra work being done by the application because of the .git directory.