]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
scripts/oe-build-perf-report: improve guessing of args
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 7 Apr 2017 11:51:41 +0000 (14:51 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:08 +0000 (22:48 +0100)
Search remote branches, too, when finding the latest commit.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-build-perf-report

index 6f2db49d5c6c6595f082ecb031d4df13a51a4e8c..ced5ff2e12a453db6484d7a751dd104684de707d 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', '--branches', '--format=%b'])
+    msg = repo.run_cmd(['log', '-1', '--branches', '--remotes', '--format=%b'])
     for line in msg.splitlines():
         split = line.split(':', 1)
         if len(split) != 2: