We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3129e6a commit 71b8f80Copy full SHA for 71b8f80
src/proxy/processors/push-action/parsePush.ts
@@ -272,7 +272,7 @@ const getCommitData = (contents: CommitContent[]): CommitData[] => {
272
* @return {[PackMeta, Buffer]} An array containing the metadata and the remaining buffer.
273
*/
274
const getPackMeta = (buffer: Buffer): [PackMeta, Buffer] => {
275
- const sig = buffer.slice(0, PACKET_SIZE).toString('utf-8');
+ const sig = buffer.subarray(0, PACKET_SIZE).toString('utf-8');
276
const version = buffer.readUIntBE(PACKET_SIZE, PACKET_SIZE);
277
const entries = buffer.readUIntBE(PACKET_SIZE * 2, PACKET_SIZE);
278
0 commit comments