[git] Fix tests: explicitly add .git to the VFS after git init