From 06e0f39b56b796ed2b5f94c0d37899aff410e6c6 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Tue, 11 Feb 2025 23:48:21 +0800 Subject: repo_commit: Don't crash when viewing the first commit --- templates/repo_commit.html.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/repo_commit.html.tmpl') diff --git a/templates/repo_commit.html.tmpl b/templates/repo_commit.html.tmpl index d568887..13832a8 100644 --- a/templates/repo_commit.html.tmpl +++ b/templates/repo_commit.html.tmpl @@ -46,14 +46,14 @@
- {{ $parent_commit_object := .parent_commit_object }} + {{ $parent_commit_hash := .parent_commit_hash }} {{ $commit_object := .commit_object }} {{ range .file_patches }}