diff options
| author | 2026-03-08 04:08:36 +0800 | |
|---|---|---|
| committer | 2026-03-08 04:08:36 +0800 | |
| commit | 1df19d6ebe4dccf7de3bcf16cf6037d169832ce3 (patch) | |
| tree | ed2b9510f0b38f35d52b41e388a250b69d1ba2bc /receivepack/capabilities_defaults.go | |
| parent | TODO: Signed push (diff) | |
| signature | No signature | |
receivepack: Trivial caps v0.1.76
Diffstat (limited to 'receivepack/capabilities_defaults.go')
| -rw-r--r-- | receivepack/capabilities_defaults.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/receivepack/capabilities_defaults.go b/receivepack/capabilities_defaults.go new file mode 100644 index 00000000..72c36c30 --- /dev/null +++ b/receivepack/capabilities_defaults.go @@ -0,0 +1,17 @@ +package receivepack + +import ( + "crypto/rand" +) + +func defaultAgent() string { + return "furgit" +} + +func defaultSessionID() string { + return "furgit-" + rand.Text() +} + +func defaultPushCertNonce() string { + return "furgit-" + rand.Text() +} |
