Fix the 'files' initialisation in git.checkout()