git cl upload now diffs HEAD rather than working tree
BUG=179131
TEST=./tests/git_cl_test.py
Review URL: https://chromiumcodereview.appspot.com/12388027
git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@185366 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/git_cl.py b/git_cl.py
index e4c3a71..f3f7839 100755
--- a/git_cl.py
+++ b/git_cl.py
@@ -1272,7 +1272,7 @@
else:
# Default to diffing against common ancestor of upstream branch
base_branch = RunGit(['merge-base', cl.GetUpstreamBranch(), 'HEAD']).strip()
- args = [base_branch]
+ args = [base_branch, 'HEAD']
if not options.bypass_hooks:
hook_results = cl.RunHook(committing=False, upstream_branch=base_branch,