gitdataai/libs
ZhenYi 82ed726848 fix(git): convert default_branch to full ref name (refs/heads/*)
The database stores short branch names (e.g., "main"), but git2's push_ref()
requires full reference names (e.g., "refs/heads/main"). This fixes all
service-layer endpoints to convert default_branch to the full ref format.

Fixed endpoints:
- git_readme: convert to refs/heads/{branch}
- git_commit_count: convert to refs/heads/{branch}
- git_contributors: convert to refs/heads/{branch}
- git_commit_log: convert to refs/heads/{branch}
- git_commit_walk: convert to refs/heads/{branch}

Resolves errors:
- Internal("the given reference name 'main' is not valid")
2026-04-17 15:56:08 +08:00
..
agent feat(service): improve model sync and harden git HTTP/SSH stability 2026-04-17 00:13:40 +08:00
agent-tool-derive init 2026-04-15 09:08:09 +08:00
api fix(git): use default_branch in git_commit_log and update API docs 2026-04-17 15:16:18 +08:00
avatar init 2026-04-15 09:08:09 +08:00
config fix(git/hook): address review findings — fs blocking, redis timeout, backoff, slog 2026-04-17 13:20:31 +08:00
db init 2026-04-15 09:08:09 +08:00
email init 2026-04-15 09:08:09 +08:00
frontend feat(frontend): embed SPA assets into app binary at compile time 2026-04-17 12:04:34 +08:00
git fix(git): use repo.default_branch instead of HEAD to avoid master/branch mismatch 2026-04-17 15:13:08 +08:00
migrate refactor(room): remove NATS, use Redis pub/sub for message queue 2026-04-16 17:24:04 +08:00
models refactor(room): remove NATS, use Redis pub/sub for message queue 2026-04-16 17:24:04 +08:00
queue refactor(room): remove NATS, use Redis pub/sub for message queue 2026-04-16 17:24:04 +08:00
room fix(room): add edit rollback, clean stream channels on room shutdown/idle 2026-04-16 19:28:23 +08:00
rpc init 2026-04-15 09:08:09 +08:00
service fix(git): convert default_branch to full ref name (refs/heads/*) 2026-04-17 15:56:08 +08:00
session init 2026-04-15 09:08:09 +08:00
transport init 2026-04-15 09:08:09 +08:00
webhook init 2026-04-15 09:08:09 +08:00