From 1d36ef43c2d6c2f9b106821ac04552d359f47116 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 00:35:29 +0800 Subject: Use ref_query for ?branch=x, etc --- templates/repo_tree_file.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/repo_tree_file.tmpl') diff --git a/templates/repo_tree_file.tmpl b/templates/repo_tree_file.tmpl index b0ce0f1..037a5af 100644 --- a/templates/repo_tree_file.tmpl +++ b/templates/repo_tree_file.tmpl @@ -3,6 +3,7 @@ SPDX-FileContributor: Runxi Yu */}} {{- define "repo_tree_file" -}} +{{- $root := . -}} @@ -14,7 +15,7 @@ {{- template "header" . -}}

- /{{ .path_spec }} (raw) + /{{ .path_spec }} (raw)

{{- .file_contents -}}
-- cgit v1.2.3