INNER CODE UNIT · Go
i
gabrie30/ghorg · scripts/local-bitbucket/seeder/main.go:591
if i == maxRetries-1 {
return fmt.Errorf("git push failed after %d attempts: %w", maxRetries, err)
}
}
return nil
}
// runGitCommand executes a git command in the specified directory
func runGitCommand(dir string, args ...string) error {
cmd := exec.Command("git", args...)
cmd.Dir = dir
cmd.Env = append(os.Environ(),
"GIT_AUTHOR_NAME=Bitbucket Seeder",
"GIT_AUTHOR_EMAIL=seeder@bitbucket.local",
"GIT_COMMITTER_NAME=Bitbucket Seeder",
"GIT_COMMITTER_EMAIL=seeder@bitbucket.local")