http://alblue.bandlem.com/2013/11/embedding-jgit.html