mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-10 16:48:21 +00:00
fix: avoid FetchRemoteTempCommit touching unnecessary resources (#39583)
Also rename FetchRemoteCommit to FetchRemoteTempCommit to clarify its purpose
This commit is contained in:
1 parent
b576f5bb34
commit
49adfd065d
4 files changed
+15
-24
No files matched your search
@@ -206,7 +206,3 @@ func runGitTests(m interface{ Run() int }) int {
|
||||
func LockConfigAndDo(ctx context.Context, repo RepositoryFacade, fn func(ctx context.Context) error) error {
|
||||
return globallock.LockAndDo(ctx, "repo-config:"+repo.GitRepoManagedID(), fn)
|
||||
}
|
||||
|
||||
func LockWriteAndDo(ctx context.Context, repo RepositoryFacade, fn func(ctx context.Context) error) error {
|
||||
return globallock.LockAndDo(ctx, "repo-write:"+repo.GitRepoManagedID(), fn)
|
||||
}
|
||||
Reference in new issue
Block a user