diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-12-19 14:45:30 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-12-19 14:45:30 -0800 |
commit | 1749053d0278f2a533f79915f03c379e5f738b39 (patch) | |
tree | b4de22a11564dc1248cbce10a3d7ac1c5129e81f /merge-recursive.c | |
parent | 8b0db484e11aa86e6b8bf4d7243d0c81bf4b3c33 (diff) | |
parent | 1c25d2d8ed4c5154c9059918e20e75cda3bede81 (diff) | |
download | git-1749053d0278f2a533f79915f03c379e5f738b39.tar.gz |
Merge branch 'jc/renormalize-merge-kill-safer-crlf'
Fix a corner case in merge-recursive regression that crept in
during 2.10 development cycle.
* jc/renormalize-merge-kill-safer-crlf:
convert: git cherry-pick -Xrenormalize did not work
merge-recursive: handle NULL in add_cacheinfo() correctly
cherry-pick: demonstrate a segmentation fault
Diffstat (limited to 'merge-recursive.c')
-rw-r--r-- | merge-recursive.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/merge-recursive.c b/merge-recursive.c index c07ba0df9d..23d6992f40 100644 --- a/merge-recursive.c +++ b/merge-recursive.c @@ -235,6 +235,8 @@ static int add_cacheinfo(struct merge_options *o, struct cache_entry *nce; nce = refresh_cache_entry(ce, CE_MATCH_REFRESH | CE_MATCH_IGNORE_MISSING); + if (!nce) + return err(o, _("addinfo_cache failed for path '%s'"), path); if (nce != ce) ret = add_cache_entry(nce, options); } |