mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-14 21:47:38 +02:00
Update modules/git/repo_commit.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
3c599a7d13
commit
437463d719
@ -29,7 +29,7 @@ func (repo *Repository) GetTagCommitID(name string) (string, error) {
|
||||
// GetCommit returns commit object of by ID string.
|
||||
func (repo *Repository) GetCommit(commitID string) (*Commit, error) {
|
||||
if commit, ok := repo.commitCache[commitID]; ok {
|
||||
log.Debug("repo commitCache hit: [%s:%s:%s]", repo.Path, commitID)
|
||||
log.Debug("repo commitCache hit: [%s:%s]", repo.Path, commitID)
|
||||
return commit, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user