Issue 1398 - Improve compatibility with older git(1) versions

--HG--
extra : amend_source : 6b60ec2f382dacfb709782c5f6d0cd78185b4afd