diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-25 13:51:07 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-25 13:51:07 +0200 |
commit | b2e8c2b464919cbd4ff471fcee8d8e63667f8a81 (patch) | |
tree | 8a7c99995ab1a68e96c588ac0422e21a222eb470 /packages/server/src/git/diff.ts | |
parent | df341dc9b874f7e7bf99d9c1de3a84c49c4a04a6 (diff) |
Fixed a bug with commit patch's bounds & removed some unnecessary awaits
Diffstat (limited to 'packages/server/src/git/diff.ts')
-rw-r--r-- | packages/server/src/git/diff.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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<PatchHeaderData> { - 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) => { |