From 46fb5b1092b40e5053fdedbf7beb0b81ea1e68b9 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 30 Oct 2025 02:55:19 +0800 Subject: [PATCH] test --- modules/git/repo_commit_nogogit.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git/repo_commit_nogogit.go b/modules/git/repo_commit_nogogit.go index 11e825122b..6b9026c1e6 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, false) // final test + batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) 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) // final test (not related?) if err != nil { return nil, err }