1
1
mirror of https://github.com/go-gitea/gitea synced 2025-11-17 19:58:13 +00:00
Files
gitea/modules/git/repo_commit_gogit.go
Giteabot d8ad9228ca Fix gogit GetRefCommitID (#32705) (#32712)
Backport #32705 by @Zettat123

Fix #32335

When we call `GetRefCommitID` and the reference is already a commit ID,
the `GetRefCommitID` with go-git will return a `NotExist` error. This PR
improves the `GetRefCommitID` for go-git. If the input is already a
commit ID, it will be returned directly.

Co-authored-by: Zettat123 <zettat123@gmail.com>
2024-12-04 07:59:48 +00:00

3.3 KiB