mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Use binary_safe_diff from arcanist
Summary: binary_safe_diff is needed in arcanist too. Moved it over to arcanist. See D2915. Test Plan: diffusion page rendered correctly on binary file. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D2916
This commit is contained in:
parent
dcf3a31944
commit
61b79b5359
2 changed files with 2 additions and 8 deletions
|
@ -1,6 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
diff "$@"
|
||||
if [ "$?" = "2" ]; then
|
||||
exit 1
|
||||
fi
|
|
@ -23,11 +23,11 @@ final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery {
|
|||
$repository = $drequest->getRepository();
|
||||
|
||||
$commit = $drequest->getCommit();
|
||||
$root = phutil_get_library_root('phabricator');
|
||||
$arc_root = phutil_get_library_root('arcanist');
|
||||
|
||||
$future = $repository->getRemoteCommandFuture(
|
||||
'diff --diff-cmd %s -x -U%d -c %d %s%s@',
|
||||
$root.'/../scripts/repository/binary_safe_diff.sh',
|
||||
$arc_root.'/../scripts/repository/binary_safe_diff.sh',
|
||||
$this->getLinesOfContext(),
|
||||
$commit,
|
||||
$repository->getRemoteURI(),
|
||||
|
|
Loading…
Reference in a new issue