aboutsummaryrefslogtreecommitdiffstats
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 12:36:45 +0100
commitf84d0bd7deb4c19fdb1e821b3a50e8c8f54a731b (patch)
tree3e0cfa7006ecd79dd01f967069ca0bfe4507e71f /scripts
parent4eb0932e755b7cb582a8db811aeed1397ecb92cc (diff)
downloadopenembedded-core-contrib-f84d0bd7deb4c19fdb1e821b3a50e8c8f54a731b.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. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
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):
"""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: