mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 00:32:42 +01:00
Ignore errors in svn diff
Summary: Otherwise attaching the commit diff doesn't work. Test Plan: Reparsed previously failing commit message. Reviewers: epriestley Reviewed By: epriestley CC: aran, Koolvin Differential Revision: https://secure.phabricator.com/D2605
This commit is contained in:
parent
7978264862
commit
ec9589fb3b
2 changed files with 9 additions and 1 deletions
6
scripts/repository/binary_safe_diff.sh
Executable file
6
scripts/repository/binary_safe_diff.sh
Executable file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
diff "$@"
|
||||
if [ "$?" = "2" ]; then
|
||||
exit 1
|
||||
fi
|
|
@ -23,9 +23,11 @@ final class DiffusionSvnRawDiffQuery extends DiffusionRawDiffQuery {
|
|||
$repository = $drequest->getRepository();
|
||||
|
||||
$commit = $drequest->getCommit();
|
||||
$root = phutil_get_library_root('phabricator');
|
||||
|
||||
$future = $repository->getRemoteCommandFuture(
|
||||
'diff --diff-cmd diff -x -U%d -c %d %s%s@',
|
||||
'diff --diff-cmd %s -x -U%d -c %d %s%s@',
|
||||
$root.'/../scripts/repository/binary_safe_diff.sh',
|
||||
$this->getLinesOfContext(),
|
||||
$commit,
|
||||
$repository->getRemoteURI(),
|
||||
|
|
Loading…
Reference in a new issue