Factor out gitlib-lg2
gitlib, -test and -lg2 are now working together