1
1
mirror of https://github.com/go-gitea/gitea synced 2025-01-23 16:14:29 +00:00
Lunny Xiao f4ccbd38dc
Use gitrepo.GetTreePathLatestCommit to get file lastest commit instead from latest commit cache (#32987)
The latest commit cache is currently used only for listing tree files.
However, a cold start may take longer than directly invoking the Git
command. This PR addresses the issue of slow response times when
accessing raw files, improving performance in such scenarios.

```log
gitea.log:105521:2024/12/23 08:22:18 ...eb/routing/logger.go:68:func1() [W] router: slow      GET /xxxx/xxxxxx/raw/commit/xxxxxxxxxxxxxxxxxxxxxxxxxxx/.editorconfig for 172.18.0.5:53252, elapsed 3526.8ms @ repo/download.go:117(repo.SingleDownload)
```
2024-12-30 03:30:01 +00:00
..
2024-02-24 18:46:49 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2024-11-02 11:20:22 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2024-11-20 19:26:12 +00:00
2024-05-03 09:13:48 +00:00
2024-09-10 02:23:07 +00:00
2023-07-12 19:07:29 +02:00
2024-10-29 18:27:03 +02:00
2024-11-20 19:26:12 +00:00

Git Module

This module is merged from https://github.com/go-gitea/git which is a Go module to access Git through shell commands. Now it's a part of gitea's main repository for easier pull request.