diff options
Diffstat (limited to 'scripts/html_base.py')
-rw-r--r-- | scripts/html_base.py | 6 |
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"): |