scripts/oe-build-perf-report: better guessing of args

When getting info from the latest commit, don't search all refs but only
branches. We don't get correct data from refs/tags/* or refs/notest/*,
for example.

(From OE-Core rev: f84d0bd7deb4c19fdb1e821b3a50e8c8f54a731b)

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Markus Lehtonen 2017-04-03 18:58:33 +03:00 committed by Richard Purdie
parent 6afe0e07ec
commit 728c668473
1 changed files with 1 additions and 1 deletions

View File

@ -380,7 +380,7 @@ def auto_args(repo, args):
"""Guess arguments, if not defined by the user"""
# Get the latest commit in the repo
log.debug("Guessing arguments from the latest commit")
msg = repo.run_cmd(['log', '-1', '--all', '--format=%b'])
msg = repo.run_cmd(['log', '-1', '--branches', '--format=%b'])
for line in msg.splitlines():
split = line.split(':', 1)
if len(split) != 2: