scripts/oe-build-perf-report: improve guessing of args
Search remote branches, too, when finding the latest commit. (From OE-Core rev: 7b502702be5d484c6f1f903426ba63cf04f8ca4a) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
182dd45f1f
commit
dff701ffd4
|
@ -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', '--branches', '--format=%b'])
|
msg = repo.run_cmd(['log', '-1', '--branches', '--remotes', '--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