From 7fa0bc1fbe5ee05a82adaeed0196a8c3da8e7f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schr=C3=B6ter?= Date: Sun, 27 Jun 2021 12:39:23 +0200 Subject: [PATCH] Removed logging workaround --- modules/git/submodule.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/git/submodule.go b/modules/git/submodule.go index 3112fa4ce3..8a995e49ee 100644 --- a/modules/git/submodule.go +++ b/modules/git/submodule.go @@ -13,7 +13,7 @@ import ( "regexp" "strings" - gitea_log "code.gitea.io/gitea/modules/log" + "code.gitea.io/gitea/modules/log" ) var scpSyntax = regexp.MustCompile(`^([a-zA-Z0-9_]+@)?([a-zA-Z0-9._-]+):(.*)$`) @@ -155,7 +155,7 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit { name = strings.TrimSpace(name) if len(name) == 0 { - gitea_log.Debug("Submodule skipped because it has no name") + log.Debug("Submodule skipped because it has no name") continue } @@ -164,7 +164,7 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit { // If no commit was found for the module skip it if err != nil { - gitea_log.Debug("Submodule %s skipped because it has no commit", name) + log.Debug("Submodule %s skipped because it has no commit", name) continue } @@ -175,14 +175,14 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit { fields := strings.Fields(commit) if len(fields) == 0 { - gitea_log.Debug("Submodule %s skipped because it has no valid commit", name) + log.Debug("Submodule %s skipped because it has no valid commit", name) continue } commit = fields[0] if len(commit) != 40 { - gitea_log.Debug("Submodule %s skipped due to malformed commit hash", name) + log.Debug("Submodule %s skipped due to malformed commit hash", name) continue }