Git backed by object storage because you can't stop me
git object-storage kefka
10

Configure Feed

Select the types of activity you want to include in your feed.

test(http): tidy parity-test literals and stale comment

Xe Iaso (May 28, 2026, 11:10 PM EDT) d1fec8cf 796639fe

+16 -8
+14 -6
cmd/objgitd/http_test.go
··· 14 14 ) 15 15 16 16 // TestSmartHTTP drives a real git client against the smart-HTTP handler over an 17 - // in-memory filesystem, covering push (create-on-demand), the allowPush gate, 18 - // and clone round-trips. 17 + // in-memory filesystem, covering push (create-on-demand), the write-gate 18 + // enforced by the authorizer, and clone round-trips. 19 19 func TestSmartHTTP(t *testing.T) { 20 20 if _, err := exec.LookPath("git"); err != nil { 21 21 t.Skip("git not installed") ··· 123 123 124 124 // Seed a repo via a push-enabled server over a shared filesystem. 125 125 fs := memfs.New() 126 - seed := httptest.NewServer(&daemon{fs: fs, loader: transport.NewFilesystemLoader(fs, false), authz: auth.AllowAnonymous{AllowWrite: true}}) 127 - defer seed.Close() 126 + seed := httptest.NewServer(&daemon{ 127 + fs: fs, 128 + loader: transport.NewFilesystemLoader(fs, false), 129 + authz: auth.AllowAnonymous{AllowWrite: true}, 130 + }) 131 + t.Cleanup(seed.Close) 128 132 129 133 work := seedRepo(t) 130 134 srcHead := strings.TrimSpace(runGit(t, work, "rev-parse", "HEAD")) ··· 133 137 } 134 138 135 139 // Serve the same filesystem with push disabled and clone from it. 136 - ro := httptest.NewServer(&daemon{fs: fs, loader: transport.NewFilesystemLoader(fs, false), authz: auth.AllowAnonymous{AllowWrite: false}}) 137 - defer ro.Close() 140 + ro := httptest.NewServer(&daemon{ 141 + fs: fs, 142 + loader: transport.NewFilesystemLoader(fs, false), 143 + authz: auth.AllowAnonymous{AllowWrite: false}, 144 + }) 145 + t.Cleanup(ro.Close) 138 146 139 147 dst := t.TempDir() 140 148 if out, err := tryGit(dst, "clone", ro.URL+"/test.git", "cloned"); err != nil {
+2 -2
docs/usage/hooks.md
··· 110 110 111 111 # Read a file out of the push. 112 112 if [ -f /src/go.mod ]; then 113 - module="$(head -n 1 /src/go.mod | cut -d' ' -f2)" 114 - echo "go module: ${module}" 113 + module="$(head -n 1 /src/go.mod | cut -d' ' -f2)" 114 + echo "go module: ${module}" 115 115 fi 116 116 117 117 # Scratch work goes in /tmp.