Fix embedded git library to not corrupt trees
Add import sample