fetchgit: adapt regex to git 2.18.0
authored by Guillaume Maudoux and committed by Will Dietz 7 years ago ea23a1ed 6f9a53c1