aboutsummaryrefslogtreecommitdiff
path: root/receivepack/options.go
diff options
context:
space:
mode:
Diffstat (limited to 'receivepack/options.go')
-rw-r--r--receivepack/options.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/receivepack/options.go b/receivepack/options.go
index f55fbad1..7328f770 100644
--- a/receivepack/options.go
+++ b/receivepack/options.go
@@ -29,6 +29,19 @@ type Options struct {
// Hook, when non-nil, runs after pack ingestion into quarantine and before
// quarantine promotion or ref updates.
Hook Hook
+ // Agent is the receive-pack agent string advertised via capability.
+ //
+ // When empty, ReceivePack derives one from build info and falls back to
+ // "furgit".
+ Agent string
+ // SessionID is the advertised receive-pack session-id capability value.
+ //
+ // When empty, ReceivePack generates one random value per invocation.
+ SessionID string
+ // PushCertNonce is the advertised push-cert nonce capability value.
+ //
+ // When empty, ReceivePack generates one random value per invocation.
+ PushCertNonce string
}
func validateOptions(opts Options) error {