From: Markus Lehtonen Date: Mon, 3 Apr 2017 15:58:33 +0000 (+0300) Subject: scripts/oe-build-perf-report: better guessing of args X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21761 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=f84d0bd7deb4c19fdb1e821b3a50e8c8f54a731b;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Ross Burton --- diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index 39766135c60..ca9cf1d9741 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: