checkout: proper error message on 'git checkout foo bar --'