summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2017-04-03 18:58:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-05 23:22:13 +0100
commit728c668473b11faba90465efe2e960463a1f0bb8 (patch)
tree2f69e12c89e8e01e0091a0e70509d3295f8e6bc3 /scripts
parent6afe0e07ecc06aa6d2078e659970954beb639bef (diff)
downloadpoky-728c668473b11faba90465efe2e960463a1f0bb8.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-build-perf-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report
index 39766135c6..ca9cf1d974 100755
--- a/scripts/oe-build-perf-report
+++ b/scripts/oe-build-perf-report
@@ -380,7 +380,7 @@ def auto_args(repo, args):
380 """Guess arguments, if not defined by the user""" 380 """Guess arguments, if not defined by the user"""
381 # Get the latest commit in the repo 381 # Get the latest commit in the repo
382 log.debug("Guessing arguments from the latest commit") 382 log.debug("Guessing arguments from the latest commit")
383 msg = repo.run_cmd(['log', '-1', '--all', '--format=%b']) 383 msg = repo.run_cmd(['log', '-1', '--branches', '--format=%b'])
384 for line in msg.splitlines(): 384 for line in msg.splitlines():
385 split = line.split(':', 1) 385 split = line.split(':', 1)
386 if len(split) != 2: 386 if len(split) != 2: