aboutsummaryrefslogtreecommitdiff
path: root/internal/template/template.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-05-04 16:25:57 +0800
committerGitHub <noreply@github.com>2020-05-04 16:25:57 +0800
commit9bb218734c53c98a13264c2f4f479e3633ccfe18 (patch)
treef32557409337e18d9f7959dcb2089f0bf698513b /internal/template/template.go
parent82ffca3fc9988345016c8033f7f65c5b028dfe10 (diff)
db: use GORM to backup and restore non-legacy tables (#6142)
Diffstat (limited to 'internal/template/template.go')
-rw-r--r--internal/template/template.go3
1 files changed, 2 insertions, 1 deletions
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) {