From 41fdaabcf7e060c057272ef845842011ca637bfc Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Wed, 13 Jan 2016 19:01:53 +0100 Subject: [PATCH] commit.RefUrl expects AppUrl argument This is fixup for ea375c0dcca118c8ac3c48ba569b025836ad5ccf. The bug was not visible because commit.RefUrl was always returning empty url due regression described in https://github.com/gogits/git-module/pull/4 --- templates/repo/view_list.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index d88d7b5597..b3dee5610f 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -31,7 +31,7 @@ {{if $commit.RefUrl AppUrl}} - {{$entry.Name}} @ {{ShortSha $commit.RefId}} + {{$entry.Name}} @ {{ShortSha $commit.RefId}} {{else}} {{$entry.Name}} @ {{ShortSha $commit.RefId}} {{end}}