feat: ignore errors for username and mail

This commit is contained in:
Simon Cornet 2025-07-07 11:52:55 +02:00
commit faf2a1ce8b

View file

@ -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
}