Skip to content

Commit 46fb5b1

Browse files
committed
test
1 parent ab56250 commit 46fb5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/git/repo_commit_nogogit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (repo *Repository) ResolveReference(name string) (string, error) {
3636

3737
// GetRefCommitID returns the last commit ID string of given reference (branch or tag).
3838
func (repo *Repository) GetRefCommitID(name string) (string, error) {
39-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // final test
39+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true)
4040
if err != nil {
4141
return "", err
4242
}
@@ -67,7 +67,7 @@ func (repo *Repository) IsCommitExist(name string) bool {
6767
}
6868

6969
func (repo *Repository) getCommit(id ObjectID) (*Commit, error) {
70-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true)
70+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // final test (not related?)
7171
if err != nil {
7272
return nil, err
7373
}

0 commit comments

Comments
 (0)