compatibility with git 1.7