author | Jeff King <peff@peff.net> | |
Fri, 4 Dec 2009 10:35:57 +0000 (05:35 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 4 Dec 2009 17:11:58 +0000 (09:11 -0800) | ||
commit | e5f591720caea0c6645fa9852903a1c43d7c3672 | |
tree | 7352a44fb07df276c63149be7ee5c051ffbac4b4 | tree | snapshot |
parent | adf9628ea41bd226dc5ab38daa0bc661097a2127 | commit | diff |
rerere: don't segfault on failure to open rr-cache
The rr-cache directory should always exist if we are doing
garbage collection (earlier code paths check this
explicitly), but we may not necessarily succeed in opening
it (for example, due to permissions problems). In that case,
we should print an error message rather than simply
segfaulting.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The rr-cache directory should always exist if we are doing
garbage collection (earlier code paths check this
explicitly), but we may not necessarily succeed in opening
it (for example, due to permissions problems). In that case,
we should print an error message rather than simply
segfaulting.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-rerere.c | diff | blob | history |