Added fix for git > 1.7.9