gitdataai/libs/service/git
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
..
archive.rs init 2026-04-15 09:08:09 +08:00
blame.rs init 2026-04-15 09:08:09 +08:00
blob.rs fix(git): convert default_branch to full ref name (refs/heads/*) 2026-04-17 15:56:08 +08:00
blocking.rs init 2026-04-15 09:08:09 +08:00
branch_protection.rs init 2026-04-15 09:08:09 +08:00
branch.rs init 2026-04-15 09:08:09 +08:00
commit.rs fix(git): convert default_branch to full ref name (refs/heads/*) 2026-04-17 15:56:08 +08:00
contributors.rs fix(git): convert default_branch to full ref name (refs/heads/*) 2026-04-17 15:56:08 +08:00
diff.rs init 2026-04-15 09:08:09 +08:00
init.rs init 2026-04-15 09:08:09 +08:00
mod.rs init 2026-04-15 09:08:09 +08:00
refs.rs init 2026-04-15 09:08:09 +08:00
repo.rs fix(git): use repo.default_branch instead of HEAD to avoid master/branch mismatch 2026-04-17 15:13:08 +08:00
star.rs init 2026-04-15 09:08:09 +08:00
tag.rs init 2026-04-15 09:08:09 +08:00
tree.rs init 2026-04-15 09:08:09 +08:00
watch.rs init 2026-04-15 09:08:09 +08:00
webhook.rs init 2026-04-15 09:08:09 +08:00