Saving a commit with an unsaved tree segfaults. calling git_remote_download without first calling git_remote_connect segfaults