Fix 'git completion' error using things I found on the internet.