Save the GIT hash of HEAD when uploading to rietveld.

Review URL: https://chromiumcodereview.appspot.com/12811006

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@188807 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/tests/git_cl_test.py b/tests/git_cl_test.py
index d8ee317..23488ce 100755
--- a/tests/git_cl_test.py
+++ b/tests/git_cl_test.py
@@ -166,6 +166,9 @@
       ((['git', 'config', 'branch.master.rietveldserver',
           'https://codereview.example.com'],), ''),
       ((['git', 'config', 'branch.master.rietveldpatchset', '2'],), ''),
+      ((['git', 'rev-parse', 'HEAD'],), 'hash'),
+      ((['git', 'symbolic-ref', 'HEAD'],), 'hash'),
+      ((['git', 'config', 'branch.hash.last-upload-hash', 'hash'],), ''),
     ]
 
   @staticmethod