From b2e8c2b464919cbd4ff471fcee8d8e63667f8a81 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 25 Jun 2021 13:51:07 +0200 Subject: Fixed a bug with commit patch's bounds & removed some unnecessary awaits --- packages/server/src/git/diff.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/server/src/git/diff.ts') diff --git a/packages/server/src/git/diff.ts b/packages/server/src/git/diff.ts index e0e112d..6cd38a3 100644 --- a/packages/server/src/git/diff.ts +++ b/packages/server/src/git/diff.ts @@ -19,7 +19,7 @@ export class Diff { } public async patchHeaderData(): Promise { - const raw_patches = await this.rawPatches(); + const raw_patches = (await this.rawPatches()).split("\n"); const patch_headers = String(await this._ng_diff.toBuf(2)).split("\n"); return patch_headers.reduce((result, line, index) => { -- cgit v1.2.3-18-g5258