in internal/mode/advanced/git/gitaly.go [147:160]
func NewGitalyClientFromEnv(repoPath, fromSHA, toSHA, correlationID string, projectID int64, projectPath string) (*gitalyClient, error) {
config, err := ReadConfig(repoPath, projectPath)
if err != nil {
return nil, err
}
client, err := NewGitalyClient(config, fromSHA, toSHA, correlationID, projectID)
if err != nil {
return nil, fmt.Errorf("Failed to open %s: %w", config.RelativePath, err)
}
return client, nil
}