From 61ec217f859a663a50612b6ee38c11bf29bfcaf8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 3 Jan 2020 16:12:18 -0500 Subject: [PATCH] refs.html: Rename ref -> refname To avoid shadowing the earlier variable --- gitsrht/templates/refs.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gitsrht/templates/refs.html b/gitsrht/templates/refs.html index bd79063..8c80d95 100644 --- a/gitsrht/templates/refs.html +++ b/gitsrht/templates/refs.html @@ -36,10 +36,10 @@

{% if isinstance(tag, pygit2.Commit) %} - {% set ref = commit.id.hex %} + {% set refname = commit.id.hex %} {{ref[len("refs/tags/"):]}} {% else %} - {% set ref = tag.name %} + {% set refname = tag.name %} .tar.gz {{icon("caret-right")}} browse {{icon("caret-right")}} log {{icon("caret-right")}}

-- 2.38.4