fix for repos ending in .git