summaryrefslogtreecommitdiffstats
path: root/g2h/cli.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-09-18 23:17:24 +0200
committerChristoph Schlosser <christoph@linux.com>2025-09-18 23:17:24 +0200
commitbd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (patch)
treed9abea372078840e69e38401bce663b00dfbe07e /g2h/cli.py
parent2a592ecd951f758a62b1c4907e5da212cf1ba264 (diff)
downloadgit2hugo-bd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1.tar.gz
g2h: Add navbar
Diffstat (limited to 'g2h/cli.py')
-rw-r--r--g2h/cli.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/g2h/cli.py b/g2h/cli.py
index 6ffabb0..3f60b82 100644
--- a/g2h/cli.py
+++ b/g2h/cli.py
@@ -22,13 +22,14 @@ def main():
branches = sorted(git.get_branches(), key=lambda b: b.commit.committed_date, reverse=True)
commits = git.get_commits()
+ head = git.get_head()
# TODO: Fix this for repo_path=(.|~)
project_name = args.name if args.name is not None else os.path.basename(args.repo_path)
tags = sorted(git.get_tags(), key=lambda t: t.commit.committed_date, reverse=True)
factory = PageFactory(args.out_dir, project_name, args.content_subdir)
- factory.new_overview(branches, tags, git.get_head()).render()
- factory.new_log(commits, branches, tags).render()
+ factory.new_overview(branches, tags, head).render()
+ factory.new_log(commits, branches, tags, head).render()
for commit in commits:
factory.new_commit(commit).render()
tree = factory.new_tree(commit, '', git.get_repo())