mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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:
parent
6afe0e07ec
commit
728c668473
|
@ -380,7 +380,7 @@ def auto_args(repo, args):
|
||||||
"""Guess arguments, if not defined by the user"""
|
"""Guess arguments, if not defined by the user"""
|
||||||
# Get the latest commit in the repo
|
# Get the latest commit in the repo
|
||||||
log.debug("Guessing arguments from the latest commit")
|
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():
|
for line in msg.splitlines():
|
||||||
split = line.split(':', 1)
|
split = line.split(':', 1)
|
||||||
if len(split) != 2:
|
if len(split) != 2:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user