From 623b14f058345901345f6c7c1b1afca12a23be29 Mon Sep 17 00:00:00 2001 From: lotherk Date: Sun, 22 Nov 2026 12:32:18 +0000 Subject: [PATCH] docs: record got worktree ref cleanup Assisted-by: OpenCode:DeepSeek-V4.1-Flash --- AGENTS.md | 3 +++ 1 file changed, 3 insertions(+) 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.