Commit 400f3e70 authored by evan@chromium.org's avatar evan@chromium.org

Prevent git from using any external diff program that may have been

configured for it when figuring out the patch to upload to the try
server.  This prevents git installations where the diff is configured
to use an interactive tool to work without doing nasty workarounds.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/1958002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@47661 0039d316-1c4b-4281-b951-d872f2087c98
parent 83bea09a
......@@ -277,7 +277,8 @@ class GIT(object):
files, usually in the prospect to apply the patch for a try job."""
if not branch:
branch = GIT.GetUpstreamBranch(cwd)
command = ['diff', '-p', '--no-prefix', branch + "..." + branch_head]
command = ['diff', '-p', '--no-prefix', '--no-ext-diff',
branch + "..." + branch_head]
if not full_move:
command.append('-C')
# TODO(maruel): --binary support.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment