fix: avoid FetchRemoteTempCommit touching unnecessary resources (#39583)

Also rename FetchRemoteCommit to FetchRemoteTempCommit to clarify its
purpose
This commit is contained in:
wxiaoguang authored and GitHub committed 2026-10-04 22:03:18 -07:00
1 parent b576f5bb34
commit 49adfd065d
4 files changed
+15 -24

No files matched your search

-4
View File
@@ -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)
}