diff options
author | John Cai <jcai@gitlab.com> | 2022-08-08 21:51:10 +0300 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2022-08-08 21:51:10 +0300 |
commit | 03b91ad04fcbd4071fe4407471cc1feef321c737 (patch) | |
tree | 326f7e1dd836e5730f2727de01f6cf9ac2cb4326 | |
parent | 6bb5f6969910ce5010f1c894ee671a86e656e6da (diff) |
print push options in prereceivejc-ci-push-options-debug
-rw-r--r-- | internal/gitaly/hook/prereceive.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/gitaly/hook/prereceive.go b/internal/gitaly/hook/prereceive.go index 544800ff0..b85cdb67b 100644 --- a/internal/gitaly/hook/prereceive.go +++ b/internal/gitaly/hook/prereceive.go @@ -72,6 +72,8 @@ func (m *GitLabHookManager) PreReceiveHook(ctx context.Context, repo *gitalypb.R return helper.ErrInternalf("reading stdin from request: %w", err) } + fmt.Printf("\n\npush options: %v\n\n\n", pushOptions) + // Only the primary should execute hooks and increment reference counters. if isPrimary(payload) { if err := m.preReceiveHook(ctx, payload, repo, pushOptions, env, changes, stdout, stderr); err != nil { |