summaryrefslogtreecommitdiff
path: root/version.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2020-01-07 04:53:10 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-01-27 20:56:02 (GMT)
commite8a1c686aee560e07e4419f5adba1b1245289dd9 (patch)
treef926500c11658454a1397bec01ec725645d39a95 /version.c
parent1c9fd32fd2b5e1b8f2807d93f3a138d5846dbaf0 (diff)
downloadgit-e8a1c686aee560e07e4419f5adba1b1245289dd9.zip
git-e8a1c686aee560e07e4419f5adba1b1245289dd9.tar.gz
git-e8a1c686aee560e07e4419f5adba1b1245289dd9.tar.bz2
t3504: do check for conflict marker after failed cherry-pick
The test with disabled rerere should make sure that the cherry-picked result does not have the conflict replaced with a recorded resolution. It attempts to do so by ensuring that the file content is _not_ equal to some other file. That by itself is a very dubious check because just about every random result of an incomplete cherry-pick would satisfy the condition. In this case, the intent was to check that the conflicting file does _not_ contain the resolved content. But the check actually uses the wrong reference file, but not the resolved content. Needless to say that the non-equality is satisfied. And, on top of it, it uses a commit that does not even touch the file that is checked. Do check for the expected result, which is content from both sides of the merge and merge conflicts. (The latter we check for just the middle separator for brevity.) As a side-effect, this also removes an incorrect use of test_must_fail. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'version.c')
0 files changed, 0 insertions, 0 deletions