This commit is contained in:
wxiaoguang committed 2025-10-30 02:55:19 +08:00
1 parent ab56250b9f
commit 46fb5b1092
1 file changed
+2 -2
+2 -2
View File
@@ -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). // GetRefCommitID returns the last commit ID string of given reference (branch or tag).
func (repo *Repository) GetRefCommitID(name string) (string, error) { 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 { if err != nil {
return "", err return "", err
} }
@@ -67,7 +67,7 @@ func (repo *Repository) IsCommitExist(name string) bool {
} }
func (repo *Repository) getCommit(id ObjectID) (*Commit, error) { 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 { if err != nil {
return nil, err return nil, err
} }