~bigbes/sr-ht-dolt: 3843eb55

remoteapi: prove an empty store takes an unrelated first push

This file had not compiled since the logrus->slog migration removed the
package-level `logger` its serve goroutines still called. The
`integration` build tag keeps it out of every default build, test and vet
run, so nothing ever said so — the suite simply never ran again.

With it compiling, add the scenario the storage layer's contract is
actually about: a database provisioned empty ahead of its first push (the
web create form, or git.sr.ht's hook through /internal/repos) accepts a
push from a local database with a root commit of its own, with no
--force. Mutating the provisioning to InitStore fails it exactly as a
user hits it today: "unknown push error; no common ancestor".

Eugene Blikh <bigbes@gmail.com> — 2026-08-15 09:09:45 UTC

Commit 3843eb55bacf238a627efe60a88763af293d2d7dview raw patch

Parent(s): a674ddb1

1 changed file(s)

FileStatus+
remoteapi/integration_test.go M +61 -3