Skip to content

Commit a758ffc

Browse files
committed
test
1 parent 2b4d53a commit a758ffc

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

modules/git/repo_commit_nogogit.go

Lines changed: 3 additions & 3 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) // test
39+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // test
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, false) // test
70+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // test
7171
if err != nil {
7272
return nil, err
7373
}
@@ -151,7 +151,7 @@ func (repo *Repository) ConvertToGitID(commitID string) (ObjectID, error) {
151151
}
152152
}
153153

154-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // test
154+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // test
155155
if err != nil {
156156
return nil, err
157157
}

modules/git/repo_tree_nogogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
func (repo *Repository) getTree(id ObjectID) (*Tree, error) {
13-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true)
13+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false)
1414
if err != nil {
1515
return nil, err
1616
}

modules/git/tree_entry_nogogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (te *TreeEntry) Size() int64 {
3636
return te.size
3737
}
3838

39-
batch, cancel, err := te.ptree.repo.CatFileBatch(te.ptree.repo.Ctx, true)
39+
batch, cancel, err := te.ptree.repo.CatFileBatch(te.ptree.repo.Ctx, false)
4040
if err != nil {
4141
log.Debug("error whilst reading size for %s in %s. Error: %v", te.ID.String(), te.ptree.repo.Path, err)
4242
return 0

modules/git/tree_nogogit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (t *Tree) ListEntries() (Entries, error) {
3535
}
3636

3737
if t.repo != nil {
38-
batch, cancel, err := t.repo.CatFileBatch(t.repo.Ctx, true)
38+
batch, cancel, err := t.repo.CatFileBatch(t.repo.Ctx, false)
3939
if err != nil {
4040
return nil, err
4141
}

0 commit comments

Comments
 (0)