Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2022-08-08 21:51:10 +0300
committerJohn Cai <jcai@gitlab.com>2022-08-08 21:51:10 +0300
commit03b91ad04fcbd4071fe4407471cc1feef321c737 (patch)
tree326f7e1dd836e5730f2727de01f6cf9ac2cb4326
parent6bb5f6969910ce5010f1c894ee671a86e656e6da (diff)
print push options in prereceivejc-ci-push-options-debug
-rw-r--r--internal/gitaly/hook/prereceive.go2
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 {