From 2a375007eed6529c464a14e0bd963bfd3d4cd2dc Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 14 Feb 2023 14:46:29 +0800 Subject: fix(repo): be tolerant to implicit submodules (#7352) --- templates/repo/view_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo/view_list.tmpl') diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index f19090fe..94f8dbfe 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -28,7 +28,7 @@ {{if .Submodule}} - {{.Entry.Name}} @ {{ShortSHA1 .Submodule.Commit}} + {{.Entry.Name}} {{if .Submodule.Commit}}@ {{ShortSHA1 .Submodule.Commit}}{{end}} {{else}} -- cgit v1.2.3