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.
--- 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