refs.c: make remove_empty_directories always set errno to something sane
commit470a91ef75d61d102c9cb655a7b8ea1555337d2d
authorRonnie Sahlberg <sahlberg@google.com>
Fri, 20 Jun 2014 14:42:52 +0000 (20 07:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 18:54:41 +0000 (14 11:54 -0700)
tree5c465831e9f76a46f4d5b85582fc727d26f69687
parent835e3c992fd453d172466be29283b55a792cac76
refs.c: make remove_empty_directories always set errno to something sane

Making errno when returning from remove_empty_directories() more
obviously meaningful, which should provide some peace of mind for
people auditing lock_ref_sha1_basic.

Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
refs.c