summaryrefslogtreecommitdiff
path: root/gitweb/static/js/lib
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2022-09-28 07:29:21 +0000
committerJunio C Hamano <gitster@pobox.com>2022-09-28 08:49:27 -0700
commit0b55d930a69692c7f4e7b90e35fa41f6c46df4bc (patch)
treea0f5e2bed339d234b2d3f609b3221d7a29bc36a6 /gitweb/static/js/lib
parent1b3d6e17fe83eb6f79ffbac2f2c61bbf1eaef5f8 (diff)
merge-ort: fix segmentation fault in read-only repositories
If the blob/tree objects cannot be written, we really need the merge operations to fail, and not to continue (and then try to access the tree object which is however still set to `NULL`). Let's stop ignoring the return value of `write_object_file()` and `write_tree()` and set `clean = -1` in the error case. Reviewed-by: Elijah Newren <newren@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static/js/lib')
0 files changed, 0 insertions, 0 deletions