local = Repo.init('local', mkdir=True)
client = HttpGitClient('http://github.com/adammorris/')
remote_refs = client.fetch('history.js.git', local)
local['HEAD'] = remote_refs['refs/heads/master']
How to pull from the remote using dulwich?