Fix patch generation on git 2.1.x.