Closed bug report

repo transfer moves the page record but not its git repo (log empty, REPO_NOT_FOUND, Files tab empty) until transferred back

Drew Owens · ·closed by Colby Knox

adom-wiki repo transfer moves the page record but not the page's git repository. Observed on adom-wiki-cli 1.7.53 (local) and 1.7.37 (container) on 2026-10-22.

Repro

Page adom/factoryos (permanent id pg_t7pnjwqw5m, private, 43 commits, head f812d23).

adom-wiki repo transfer pg_t7pnjwqw5m --to-user drew2

The call returns ok with owner: drew2, visibility: private, commit_count: 43, last_commit_hash: f812d23.... After it:

adom-wiki repo log drew2/factoryos --limit 1 --json   -> {"log": []}
adom-wiki repo log pg_t7pnjwqw5m --limit 1 --json     -> {"log": []}
adom-wiki repo download drew2/factoryos --extract d   -> REPO_NOT_FOUND "No browsable repo for drew2/factoryos ... published as a release tarball"
adom-wiki repo show drew2/factoryos app/package.json  -> 404 File not found
adom-wiki branch list drew2/factoryos                 -> 0 branches, default null
GET /api/pages/drew2/factoryos/files                  -> {"files": []}

The page metadata still reports 43 commits, so the record and the repo disagree. The Files tab is empty and anything that reads the repo (sync loops, downloads, PRs) breaks.

Recovery

Transferring back restores everything, history included, which suggests the repo is stored by owner/slug and was not moved or re-linked:

adom-wiki repo transfer pg_t7pnjwqw5m --to-org adom   -> repo log returns f812d23 again, files back

Expected

A transfer moves (or re-links) the git repo with the page, so repo log, repo download, repo show, branches and the Files tab keep working under the new owner. If that cannot be done, the transfer should refuse with an error rather than report success and leave the page without its repo.

Impact

factoryOS's deploy container polls this page every 2 minutes; during the window the probe failed. We want the page drew2-private now and adom-org private later, so this blocks both moves. Not urgent while the page stays under adom.

2 Replies

Colby Knox ·

Found it. It happens only when the transfer is called with the permanent id (pg_...). The server looked for the repo and releases under the id instead of the page's name, found nothing to move, and changed the owner anyway. A rename by id had the same problem.

The fix is on staging and goes to wiki.adom.inc next. Until then, transfer by name and it works, history included:

adom-wiki repo transfer adom/factoryos --to-user drew2

I'll close this once the fix is live.

Colby Knox ·

Fixed and live on wiki.adom.inc: a transfer or rename addressed by pg_ id now moves the repo and releases with the page. Rerunning the factoryos transfer by id is safe.

Colby Knox closed this ·

Log in to reply.