Push mercurial repository to git fails
Created originally on Bitbucket by m00nlight (Yushi Wang)
With mercurial 2.8.2, dulwich 0.9.8, hg-git 0.7.0.
When push the mercurial repository to git, I get the following error:
searching for changes
54 commits found
adding objects
abort: git remote error: unpack index-pack abnormal exit
warning: post-push hook exited with status 255
My repository configuration file is something like this
[paths]
default = ssh://hg@bitbucket.org/username/project
github = git+ssh://git@github.com:username/project.git
[ui]
username = aaa <bb@cc.com>
verbose = True
[extensions]
hgext.bookmarks =
hggit =
[hooks]
post-push = if [ $HG_ARGS = "push" ]; then hg push github; fi