]> khamidou — GitHub mirrors - arcanist.git/commit
Preserve the exit code of the diff command in binary_safe_diff.sh
authorDimitry Andric <dimitry@andric.com>
Sun, 13 Dec 2015 10:21:43 +0000 (02:21 -0800)
committerepriestley <git@epriestley.com>
Sun, 13 Dec 2015 10:21:43 +0000 (02:21 -0800)
commit97056a3b85bbee72d6ede1b9478b03dee1db2d4e
tree2d103cc82c866a146d35efa9fd0ca1e09b140a26
parent74c7495b1a92433d6d8d577831b73b1ecffcaaf4
Preserve the exit code of the diff command in binary_safe_diff.sh

Summary:
Some versions of Subversion (1.9 in any case, maybe others) will
duplicate diff headers, if the diff command run through --diff-cmd
returns 0.

This lead to T9970, where the addition of a new file with properties
only shows the properties themselves in the review, not the content of
the new file.

Test Plan: This is a trivial change, is a test needed at all?

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: stevenh, Korvin, eadler

Differential Revision: https://secure.phabricator.com/D14755
scripts/repository/binary_safe_diff.sh