summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-03-23 15:54:19 +0900
committerKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2021-03-30 08:47:08 +0900
commit54f5bd29ec86aee45994611cee69c10c7ddb3972 (patch)
treede4433583f9c77f3b4d1e879910497b16fdf1060 /scripts
parentbbd2f1c781c8791f1626e003f86ebaa89260c8f6 (diff)
html_base: indicate commit itself if it does not exist
Sometimes we run "make" without update Linux, and then we can't find some commits. In such case git indicates error message, but periject will not stop, and we lose such tasks from HTML. Now we can use run2() which can get return value. By This patch, periject indicates commit itself as title. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/html_base.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/html_base.py b/scripts/html_base.py
index 562d90f..4941721 100644
--- a/scripts/html_base.py
+++ b/scripts/html_base.py
@@ -121,7 +121,11 @@ class myhtml(base.base):
return os.path.relpath(file.replace("yaml", "html").replace("projects", "html"), frm)
def git_title(self, id):
- return self.run("git -C {} log -1 {} --format=%s".format(self.git, id))
+ title, ret = self.run2("git -C {} log -1 {} --format=%s".format(self.git, id))
+ if (ret != 0):
+ title = "commit {}".format(id)
+
+ return title
def commit_url(self, id, type):
if (type == "bsp"):