diff options
author | John Keeping <john@keeping.me.uk> | 2013-05-06 16:20:54 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-06 22:17:00 -0700 |
commit | 94883b4302118fe6ea50028d02bb453c9af38b66 (patch) | |
tree | 720fe7f32b19b31a4ebf48469c0bff77e57a1c1d /t/t4032-diff-inter-hunk-context.sh | |
parent | merge-tree: fix typo in "both changed identically" (diff) | |
download | tgif-94883b4302118fe6ea50028d02bb453c9af38b66.tar.xz |
merge-tree: handle directory/empty conflict correctly
git-merge-tree causes a null pointer dereference when a directory
entry exists in only one or two of the three trees being compared with
no corresponding entry in the other tree(s).
When this happens, we want to handle the entry as a directory and not
attempt to mark it as a file merge. Do this by setting the entries bit
in the directory mask when the entry is missing or when it is a
directory, only performing the file comparison when we know that a file
entry exists.
Reported-by: Andreas Jacobsen <andreas@andreasjacobsen.com>
Signed-off-by: John Keeping <john@keeping.me.uk>
Tested-by: Andreas Jacobsen <andreas@andreasjacobsen.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4032-diff-inter-hunk-context.sh')
0 files changed, 0 insertions, 0 deletions