"git checkout -- paths..." should error out when paths cannot be written
authorJunio C Hamano <gitster@pobox.com>
Wed, 28 May 2008 21:48:57 +0000 (14:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 May 2008 00:38:20 +0000 (17:38 -0700)
commitd2b3691b61d516a0ad2bf700a2a5d9113ceff0b1
tree70a03d79431c4024e3dc3cb07bd5bfad7a0911cb
parenta7052d3521de1210026bf5a29d57c37ee7800166
"git checkout -- paths..." should error out when paths cannot be written

When "git checkout -- paths..." cannot update work tree for whatever
reason, checkout_entry() correctly issued an error message for the path to
the end user, but the command ignored the error, causing the entire
command to succeed.  This fixes it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-checkout.c