git_cache: print gsutil command.

Bug: 1370443
Change-Id: If2cf31982b13a1f6ec9bb9fd6dccb9095e209d63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3933833
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Joanna Wang <jojwang@chromium.org>
diff --git a/git_cache.py b/git_cache.py
index 0c61285..19cbf6f 100755
--- a/git_cache.py
+++ b/git_cache.py
@@ -516,7 +516,6 @@
         cwd=self.mirror_path).decode('utf-8', 'ignore').strip()
     gsutil = Gsutil(path=self.gsutil_exe, boto_path=None)
 
-    src_name = self.mirror_path
     dest_prefix = '%s/%s' % (self._gs_path, gen_number)
 
     # ls_out lists contents in the format: gs://blah/blah/123...
@@ -560,11 +559,15 @@
       # getting compressed enough.
     self.RunGit(gc_args)
 
-    gsutil.call('-m', 'cp', '-r', src_name, dest_prefix)
+    self.print('running "gsutil -m cp -r %s %s"' %
+               (self.mirror_path, dest_prefix))
+    gsutil.call('-m', 'cp', '-r', self.mirror_path, dest_prefix)
 
     # Create .ready file and upload
     _, ready_file_name =  tempfile.mkstemp(suffix='.ready')
     try:
+      self.print('running "gsutil cp %s %s.ready"' %
+                 (ready_file_name, dest_prefix))
       gsutil.call('cp', ready_file_name, '%s.ready' % (dest_prefix))
     finally:
       os.remove(ready_file_name)