Skip to content

Commit 18b5b7a

Browse files
committed
test
1 parent 0aa7967 commit 18b5b7a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/git/blob_nogogit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Blob struct {
2424
// DataAsync gets a ReadCloser for the contents of a blob without reading it all.
2525
// Calling the Close function on the result will discard all unread output.
2626
func (b *Blob) DataAsync() (_ io.ReadCloser, retErr error) {
27-
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, true) // not related
27+
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, false) // not related
2828
if err != nil {
2929
return nil, err
3030
}
@@ -57,7 +57,7 @@ func (b *Blob) Size() int64 {
5757
return b.size
5858
}
5959

60-
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, true) // not related
60+
batch, cancel, err := b.repo.CatFileBatch(b.repo.Ctx, false) // not related
6161
if err != nil {
6262
log.Debug("error whilst reading size for %s in %s. Error: %v", b.ID.String(), b.repo.Path, err)
6363
return 0

modules/git/repo_branch_nogogit.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func (repo *Repository) IsObjectExist(name string) bool {
2323
return false
2424
}
2525

26-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // not related
26+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // not related
2727
if err != nil {
2828
log.Debug("Error writing to CatFileBatchCheck %v", err)
2929
return false
@@ -44,7 +44,7 @@ func (repo *Repository) IsReferenceExist(name string) bool {
4444
return false
4545
}
4646

47-
batch, cancel, err := repo.CatFileBatch(repo.Ctx, true) // not related
47+
batch, cancel, err := repo.CatFileBatch(repo.Ctx, false) // not related
4848
if err != nil {
4949
log.Debug("Error writing to CatFileBatchCheck %v", err)
5050
return false

0 commit comments

Comments
 (0)