X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-reset.c;h=16e6bb20f1af6a7a684a747b3c0cc26ceabe8ce7;hb=18e143487ddb5b32b2f6003972d2115bb4ac460f;hp=c24c21909194014b467c86fd3598796e7db576b3;hpb=b0320eaf6a25fbc4adf35d611c27006e6d853aa8;p=git.git diff --git a/builtin-reset.c b/builtin-reset.c index c24c21909..16e6bb20f 100644 --- a/builtin-reset.c +++ b/builtin-reset.c @@ -121,6 +121,9 @@ static void update_index_from_diff(struct diff_queue_struct *q, struct cache_entry *ce; ce = make_cache_entry(one->mode, one->sha1, one->path, 0, 0); + if (!ce) + die("make_cache_entry failed for path '%s'", + one->path); add_cache_entry(ce, ADD_CACHE_OK_TO_ADD | ADD_CACHE_OK_TO_REPLACE); } else