diff --git a/git/operations.go b/git/operations.go index ca6aeed08..6071b319c 100644 --- a/git/operations.go +++ b/git/operations.go @@ -144,6 +144,9 @@ func (s *Service) CommitFiles(ctx context.Context, params *CommitFilesParams) (C } refUpdater, err := hook.CreateRefUpdater(s.hookClientFactory, params.EnvVars, repoPath, branchRef) + if err != nil { + return CommitFilesResponse{}, fmt.Errorf("failed to create ref updater: %w", err) + } // run the actions in a shared repo