Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge-recursive: handle NULL in add_cacheinfo() correctly
1335d76e45 ("merge: avoid "safer crlf" during recording of merge results", 2016-07-08) tried to split make_cache_entry() call made with CE_MATCH_REFRESH into a call to make_cache_entry() without one, followed by a call to add_cache_entry(), refresh_cache() and another add_cache_entry() as needed. However the conversion was botched in that it forgot that refresh_cache() can return NULL, which was handled correctly in make_cache_entry() but in the updated code. This fixes git-for-windows/git#952 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> (cherry picked from commit 55e9f0e5c9a918c246b7eae1fe2a2e954f6426af) Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Gbp-Pq: Name merge-recursive-handle-NULL-in-add_cacheinfo-correctl.diff
- Loading branch information