X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-rerere.c;h=2be9ffb77b38ae687537f3599c9d11e3fbc026a9;hb=b30ccd757354ea09b41e4359b0a5ab429d12f02e;hp=343d6cde48266d63c0aa6826b973e55b48820745;hpb=aa437791d8b3d5a163777d1cabd1f299654ce712;p=git.git diff --git a/builtin-rerere.c b/builtin-rerere.c index 343d6cde4..2be9ffb77 100644 --- a/builtin-rerere.c +++ b/builtin-rerere.c @@ -48,6 +48,8 @@ static void garbage_collect(struct string_list *rr) git_config(git_rerere_gc_config, NULL); dir = opendir(git_path("rr-cache")); + if (!dir) + die_errno("unable to open rr-cache directory"); while ((e = readdir(dir))) { if (is_dot_or_dotdot(e->d_name)) continue;