]> git.ipfire.org Git - thirdparty/git.git/commit
t4023: fix ignored exit codes of git
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 2 Dec 2022 00:06:29 +0000 (01:06 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Dec 2022 00:28:04 +0000 (09:28 +0900)
commit5f3bfdc4f3de4800737dd0f5df25c10497894178
treef502a34fc70b4f67bdc977d611d2fff73c7d996d
parente7e5c6f715b2de7bea0d39c7d2ba887335b40aa0
t4023: fix ignored exit codes of git

Change a "git diff-tree" command to be &&-chained so that we won't
ignore its exit code, see the ea05fd5fbf7 (Merge branch
'ab/keep-git-exit-codes-in-tests', 2022-03-16) topic for prior art.

This fixes code added in b45563a229f (rename: Break filepairs with
different types., 2007-11-30). Due to hiding the exit code we hid a
memory leak under SANITIZE=leak.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4023-diff-rename-typechange.sh