Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mail.openembedded.org (Postfix) with ESMTP id E2A9B77CDA for ; Mon, 3 Apr 2017 15:58:40 +0000 (UTC) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP; 03 Apr 2017 08:58:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,271,1486454400"; d="scan'208";a="841292440" Received: from marquiz.fi.intel.com ([10.237.72.155]) by FMSMGA003.fm.intel.com with ESMTP; 03 Apr 2017 08:58:41 -0700 From: Markus Lehtonen To: openembedded-core@lists.openembedded.org Date: Mon, 3 Apr 2017 18:58:33 +0300 Message-Id: <20170403155839.14067-2-markus.lehtonen@linux.intel.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170403155839.14067-1-markus.lehtonen@linux.intel.com> References: <20170403155839.14067-1-markus.lehtonen@linux.intel.com> Subject: [PATCH 1/7] scripts/oe-build-perf-report: better guessing of args X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Apr 2017 15:58:41 -0000 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 --- scripts/oe-build-perf-report | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/oe-build-perf-report b/scripts/oe-build-perf-report index 3976613..ca9cf1d 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: -- 2.10.2