diff --git a/AGENTS.md b/AGENTS.md index ea9a223e7e..ab3cf6ed2e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -97,6 +97,9 @@ make test-migration # after modelmigration changes A bare repository cannot be edited in place: server-side edits and merges need a temporary `got checkout` work tree and a `got commit`. Serialize per repository and clean up. +- A temporary `got checkout` leaves `refs/got/worktree/base-` in the + repository. Delete it with `got ref -d` when removing the worktree, or refs + accumulate and block object cleanup. `cgi/pages/publish.sh` does this. - Commits take their author from `GOT_AUTHOR` (or `got.conf`/Git config). Gitea's `GIT_AUTHOR_*` variables are ignored by got; pass `GOT_AUTHOR` per command rather than mutating shared repository config.