From c74e4bd4d941cd4d050850c7d45fe14f70aa72b5 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Wed, 23 Jan 2019 10:31:49 +1300 Subject: [PATCH] rrs_maintainer_history: check out layer branch before looking for maintainers.inc The revision that happens to be checked out at the moment could be anything and might not actually have a maintainers.inc, so check out the proper branch before looking for it. Signed-off-by: Paul Eggleton --- rrs/tools/rrs_maintainer_history.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rrs/tools/rrs_maintainer_history.py b/rrs/tools/rrs_maintainer_history.py index b38fe44..1c04545 100755 --- a/rrs/tools/rrs_maintainer_history.py +++ b/rrs/tools/rrs_maintainer_history.py @@ -69,6 +69,8 @@ def get_commit_info(info, logger): def maintainers_inc_history(options, logger, maintplan, layerbranch, repodir, layerdir): + utils.checkout_layer_branch(layerbranch, repodir, logger=logger) + maintainers_full_path = os.path.join(layerdir, MAINTAINERS_INCLUDE_PATH) if not os.path.exists(maintainers_full_path): logger.warning('Maintainer style is maintainers.inc for plan %s but no maintainers.inc exists in for %s' % (maintplan, layerbranch))