Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changed logging level
  • Loading branch information
sschroe committed Jun 27, 2021
commit 4b338924b98ea4ef191874a3809fd77a3d8943de
8 changes: 4 additions & 4 deletions modules/git/submodule.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit {
name = strings.TrimSpace(name)

if len(name) == 0 {
gitea_log.Info("Submodule skipped because it has no name")
gitea_log.Debug("Submodule skipped because it has no name")
continue
}

Expand All @@ -164,7 +164,7 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit {

// If no commit was found for the module skip it
if err != nil {
gitea_log.Info("Submodule %s skipped because it has no commit", name)
gitea_log.Debug("Submodule %s skipped because it has no commit", name)
continue
}

Expand All @@ -175,14 +175,14 @@ func GetSubmoduleCommits(repoPath string) []SubModuleCommit {
fields := strings.Fields(commit)

if len(fields) == 0 {
gitea_log.Info("Submodule %s skipped because it has no valid commit", name)
gitea_log.Debug("Submodule %s skipped because it has no valid commit", name)
continue
}

commit = fields[0]

if len(commit) != 40 {
gitea_log.Info("Submodule %s skipped due to malformed commit hash", name)
gitea_log.Debug("Submodule %s skipped due to malformed commit hash", name)
continue
}

Expand Down