From 2b4d53a219822b5dba21b57f5f724d2e345c6780 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 30 Oct 2025 01:34:03 +0800 Subject: [PATCH] test1 --- modules/git/repo_commit_nogogit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go index 3d67e371d8..2f20ed1163 100644 --- a/modules/git/repo_commit_nogogit.go +++ b/modules/git/repo_commit_nogogit.go @@ -36,7 +36,7 @@ func (repo *Repository) ResolveReference(name string) (string, error) { // GetRefCommitID returns the last commit ID string of given reference (branch or tag). func (repo *Repository) GetRefCommitID(name string) (string, error) { - batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) + batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // test if err != nil { return "", err } @@ -67,7 +67,7 @@ func (repo *Repository) IsCommitExist(name string) bool { } func (repo *Repository) getCommit(id ObjectID) (*Commit, error) { - batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) + batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // test if err != nil { return nil, err } @@ -151,7 +151,7 @@ func (repo *Repository) ConvertToGitID(commitID string) (ObjectID, error) { } } - batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) + batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // test if err != nil { return nil, err }