Skip to content

Commit 71b8f80

Browse files
Update src/proxy/processors/push-action/parsePush.ts
Co-authored-by: Thomas Cooper <[email protected]>
1 parent 3129e6a commit 71b8f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/proxy/processors/push-action/parsePush.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const getCommitData = (contents: CommitContent[]): CommitData[] => {
272272
* @return {[PackMeta, Buffer]} An array containing the metadata and the remaining buffer.
273273
*/
274274
const getPackMeta = (buffer: Buffer): [PackMeta, Buffer] => {
275-
const sig = buffer.slice(0, PACKET_SIZE).toString('utf-8');
275+
const sig = buffer.subarray(0, PACKET_SIZE).toString('utf-8');
276276
const version = buffer.readUIntBE(PACKET_SIZE, PACKET_SIZE);
277277
const entries = buffer.readUIntBE(PACKET_SIZE * 2, PACKET_SIZE);
278278

0 commit comments

Comments
 (0)