This patch should be a fairly obvious bug fix. Just yesterday I run into it, when testing some buggy code that lead to this error message being triggered; the results was lots of unreadable binary gibberish filling my terminal. While I did not author this commit, I asked its author for (and received) permission to submit it here. Hopefully this can be included in mainline git (this would ease work on git-remote-hg a bit ;). -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html