Closed alexreg closed 10 years ago
Do you have a bookmark named 'master'? If not, set one, that may help.
Otherwise, I'm not sure what's going on.
I do, yeah. Pushing is normally fine, but not when I'm missing a revision in the local Hg branch that doesn't exist in the remote Git branch.
Okay, so I just tried pushing to an empty local Git repo, and it still fails. Something very odd is going on here.
alex-mbp:pdfmarks alex$ hg push --force ../pdfmarks.git/
pushing to ../pdfmarks.git/
searching for changes
adding objects
abort: git remote error: refs/heads/master failed to update
Well, any thoughts?
Afraid not.
This seems to be related to https://github.com/schacon/hg-git/issues/262, since I get "0 commits found" when I run hg push -f -v gh
. Hmm.
Looks like a dulwich bug. If you use dulwich 0.9.1, it's gone, and so is that other issue... I'll submit a patch presently!
Even specifying the force option doesn't seem to help...
Any chance you could fix this for the next release? Until then, I'd be grateful to hear of a work-around.