| Index: scm.py
|
| diff --git a/scm.py b/scm.py
|
| index 209e064631b554d0902e3897b7b20600b024dbc9..a421ec78d82ccb00ecf8595ac4053ef2fec8e86b 100644
|
| --- a/scm.py
|
| +++ b/scm.py
|
| @@ -234,7 +234,7 @@ class GIT(object):
|
| files, usually in the prospect to apply the patch for a try job."""
|
| if not branch:
|
| branch = GIT.GetUpstream(cwd)
|
| - command = ['diff-tree', '-p', '--no-prefix', branch, branch_head]
|
| + command = ['diff', '-p', '--no-prefix', branch + "..." + branch_head]
|
| if not full_move:
|
| command.append('-C')
|
| # TODO(maruel): --binary support.
|
| @@ -254,7 +254,7 @@ class GIT(object):
|
| """Returns the list of modified files between two branches."""
|
| if not branch:
|
| branch = GIT.GetUpstream(cwd)
|
| - command = ['diff', '--name-only', branch, branch_head]
|
| + command = ['diff', '--name-only', branch + "..." + branch_head]
|
| return GIT.Capture(command, cwd)[0].splitlines(False)
|
|
|
| @staticmethod
|
|
|