dmusican / Elegit

A GUI client for people who want to learn Git.
MIT License
30 stars 7 forks source link

Prevent ${sys:logFolder} from being created #553

Open dmusican opened 6 years ago

dmusican commented 6 years ago

The folder ${sys:logFolder} keeps getting created unintentionally in the Elegit project directory. This is because of a log4j initialization issue, where if the library is used before certain initializations have happened, it doesn't yet know what the values of certain variables are. There's a fix for this with a static initializer in Main.java, and that helped, but this fix must need to be done in other places as well.

Write tests to detect this is going on, and then fix them.