Bug 1139827 - Output only the SHA to the log when verifying gaia repo checkout
authorEd Morley <emorley@mozilla.com>
Fri, 06 Mar 2015 10:19:24 +0000 (2015-03-06)
changeset 3723 b3fa3fcc09293069129d394053dc314de8d97ba3
parent 3721 f31676ebc5183a04b4701f489bca0a03256a23c0
child 3724 29e05187fb530b4d368b76e750a5c6f920a94733
push id2927
push useremorley@mozilla.com
push dateFri, 06 Mar 2015 10:19:42 +0000 (2015-03-06)
bugs1139827
Bug 1139827 - Output only the SHA to the log when verifying gaia repo checkout Since outputting the full commit messages can cause log parser false positives.
mozharness/mozilla/gaia.py
--- a/mozharness/mozilla/gaia.py
+++ b/mozharness/mozilla/gaia.py
@@ -199,17 +199,17 @@ class GaiaMixin(object):
                 cmd = [git_cmd,
                        'checkout',
                        revision or branch]
                 self.run_command(cmd, cwd=dest, halt_on_failure=True,
                                  fatal_exit_code=3)
 
 
             # verify
-            for cmd in ([git_cmd, 'log', '-1'], [git_cmd, 'branch']):
+            for cmd in ([git_cmd, 'rev-parse', 'HEAD'], [git_cmd, 'branch']):
                 self.run_command(cmd, cwd=dest, halt_on_failure=True,
                                  fatal_exit_code=3)
 
         else:
             # purge the repo if it already exists
             if os.path.exists(dest):
                 if os.path.exists(os.path.join(dest, '.hg')):
                     # this is an hg dir, so do an hg clone