From 35b802d181b2f86194f0cd98caa615288aa0afa3 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Wed, 24 Apr 2024 13:45:14 +0200 Subject: [PATCH] Update --- cmd/mirror.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/mirror.go b/cmd/mirror.go index 65fdc89..3e28418 100644 --- a/cmd/mirror.go +++ b/cmd/mirror.go @@ -254,7 +254,9 @@ func GitFetchBranches(sourceRemote *git.Remote, sourceAuthentication Authenticat log.Info("[", repositoryName, "] Repository up-to-date.") return nil default: - log.Warn("[", repositoryName, "] Retrying fetching branches because the following error occurred: ", err) + if err != nil { + log.Warn("[", repositoryName, "] Retrying fetching branches because the following error occurred: ", err) + } return err } }