@@ -67,7 +67,7 @@ func OpenRepository(ctx context.Context, repoPath string) (*Repository, error) {
6767func (repo * Repository ) CatFileBatch (ctx context.Context ) (WriteCloserError , * bufio.Reader , func (), error ) {
6868 if repo .batch == nil {
6969 var err error
70- repo .batch , err = repo . NewBatch (ctx )
70+ repo .batch , err = NewBatch (ctx , repo . Path )
7171 if err != nil {
7272 return nil , nil , nil , err
7373 }
@@ -81,7 +81,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
8181 }
8282
8383 log .Debug ("Opening temporary cat file batch for: %s" , repo .Path )
84- tempBatch , err := repo . NewBatch (ctx )
84+ tempBatch , err := NewBatch (ctx , repo . Path )
8585 if err != nil {
8686 return nil , nil , nil , err
8787 }
@@ -92,7 +92,7 @@ func (repo *Repository) CatFileBatch(ctx context.Context) (WriteCloserError, *bu
9292func (repo * Repository ) CatFileBatchCheck (ctx context.Context ) (WriteCloserError , * bufio.Reader , func (), error ) {
9393 if repo .check == nil {
9494 var err error
95- repo .check , err = repo . NewBatchCheck (ctx )
95+ repo .check , err = NewBatchCheck (ctx , repo . Path )
9696 if err != nil {
9797 return nil , nil , nil , err
9898 }
@@ -106,7 +106,7 @@ func (repo *Repository) CatFileBatchCheck(ctx context.Context) (WriteCloserError
106106 }
107107
108108 log .Debug ("Opening temporary cat file batch-check for: %s" , repo .Path )
109- tempBatchCheck , err := repo . NewBatchCheck (ctx )
109+ tempBatchCheck , err := NewBatchCheck (ctx , repo . Path )
110110 if err != nil {
111111 return nil , nil , nil , err
112112 }
0 commit comments