Upgraded to use dulwich 0.9.1 API.