From 9bb218734c53c98a13264c2f4f479e3633ccfe18 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Mon, 4 May 2020 16:25:57 +0800 Subject: db: use GORM to backup and restore non-legacy tables (#6142) --- internal/template/template.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/template') diff --git a/internal/template/template.go b/internal/template/template.go index faf27495..e904e6e9 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -23,6 +23,7 @@ import ( "github.com/gogs/git-module" "gogs.io/gogs/internal/conf" + "gogs.io/gogs/internal/cryptoutil" "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/gitutil" "gogs.io/gogs/internal/markup" @@ -149,7 +150,7 @@ func NewLine2br(raw string) string { } func Sha1(str string) string { - return tool.SHA1(str) + return cryptoutil.SHA1(str) } func ToUTF8WithErr(content []byte) (error, string) { -- cgit v1.2.3