Updated for the new version of gitlib