From faf2a1ce8bfc68c06702032c49204c146c42c3c6 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 7 Jul 2025 11:52:55 +0200 Subject: [PATCH] feat: ignore errors for username and mail --- cmd/gogitlabber/git.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/gogitlabber/git.go b/cmd/gogitlabber/git.go index 6a5e0b9..06fb072 100644 --- a/cmd/gogitlabber/git.go +++ b/cmd/gogitlabber/git.go @@ -176,21 +176,19 @@ func pullRepository(repoName string, repoDestination string) { } // function to set the git user name -func setGitUserName(repoName string, repoDestination string) error { +func setGitUserName(repoName string, repoDestination string) { gitUserNameCmd := exec.Command("git", "-C", repoDestination, "config", "user.name", config.GitUserName) - _, err := gitUserNameCmd.CombinedOutput() + gitUserNameCmd.CombinedOutput() logger.Print("Setting git username for: "+repoName, nil) - return err } // function to set the git user mail -func setGitUserMail(repoName string, repoDestination string) error { +func setGitUserMail(repoName string, repoDestination string) { gitUserMailCmd := exec.Command("git", "-C", repoDestination, "config", "user.mail", config.GitUserMail) - _, err := gitUserMailCmd.CombinedOutput() + gitUserMailCmd.CombinedOutput() logger.Print("Setting git email for: "+repoName, nil) - return err }