gitdataai/libs/service
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
auth init 2026-04-15 09:08:09 +08:00
git fix(git): convert default_branch to full ref name (refs/heads/*) 2026-04-17 15:56:08 +08:00
issue init 2026-04-15 09:08:09 +08:00
project feat(repo): return ssh/https clone URLs from backend 2026-04-16 18:20:48 +08:00
pull_request init 2026-04-15 09:08:09 +08:00
search init 2026-04-15 09:08:09 +08:00
skill init 2026-04-15 09:08:09 +08:00
user init 2026-04-15 09:08:09 +08:00
utils init 2026-04-15 09:08:09 +08:00
workspace init 2026-04-15 09:08:09 +08:00
Cargo.toml feat(service): improve model sync and harden git HTTP/SSH stability 2026-04-17 00:13:40 +08:00
error.rs feat(error): add error print info to system command 2026-04-17 14:42:51 +08:00
lib.rs init 2026-04-15 09:08:09 +08:00
webhook_dispatch.rs init 2026-04-15 09:08:09 +08:00
ws_token.rs init 2026-04-15 09:08:09 +08:00