]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-build-perf-report: better guessing of args
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 3 Apr 2017 15:58:33 +0000 (18:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Apr 2017 11:36:45 +0000 (12:36 +0100)
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>
scripts/oe-build-perf-report

index 39766135c60995a35dc540788363156a2f3a3a95..ca9cf1d9741a8a45bf984650fed68b5469989422 100755 (executable)
@@ -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: