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:
		
							
								
								
									
										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(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user