diff options
| author | 2026-03-08 04:08:36 +0800 | |
|---|---|---|
| committer | 2026-03-08 04:08:36 +0800 | |
| commit | 1df19d6ebe4dccf7de3bcf16cf6037d169832ce3 (patch) | |
| tree | ed2b9510f0b38f35d52b41e388a250b69d1ba2bc /receivepack/options.go | |
| parent | TODO: Signed push (diff) | |
| signature | No signature | |
receivepack: Trivial caps v0.1.76
Diffstat (limited to 'receivepack/options.go')
| -rw-r--r-- | receivepack/options.go | 13 |
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 { |
