@@ -204,7 +204,7 @@ export class GerritUrlReader implements UrlReader {
|
||||
});
|
||||
const tarArchive = Readable.from(data);
|
||||
return await this.deps.treeResponseFactory.fromTarArchive({
|
||||
stream: Readable.from(tarArchive),
|
||||
stream: tarArchive,
|
||||
subpath: filePath === '/' ? undefined : filePath,
|
||||
etag: branchInfo.revision,
|
||||
filter: options?.filter,
|
||||
|
||||
@@ -151,9 +151,6 @@ export class TarArchiveResponse implements ReadTreeResponse {
|
||||
const strip = this.subPath ? this.subPath.split('/').length : 1;
|
||||
|
||||
let filterError: Error | undefined = undefined;
|
||||
this.stream.on('error', console.error);
|
||||
this.stream.on('close', console.error);
|
||||
console.log('we are here!');
|
||||
await pipeline(
|
||||
this.stream,
|
||||
tar.extract({
|
||||
|
||||
Reference in New Issue
Block a user