"git checkout -- paths..." should error out when paths cannot be written