diff options
Diffstat (limited to 'internal/gitaly/hook/custom.go')
-rw-r--r-- | internal/gitaly/hook/custom.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/gitaly/hook/custom.go b/internal/gitaly/hook/custom.go index 2c819dd3e..525544bc0 100644 --- a/internal/gitaly/hook/custom.go +++ b/internal/gitaly/hook/custom.go @@ -67,8 +67,8 @@ func (m *GitLabHookManager) newCustomHooksExecutor(repo *gitalypb.Repository, ho for _, hookFile := range hookFiles { cmd := exec.Command(hookFile, args...) - cmd.Dir = repoPath c, err := command.New(ctx, cmd, + command.WithDir(repoPath), command.WithStdin(bytes.NewReader(stdinBytes)), command.WithStdout(stdout), command.WithStderr(stderr), |