Skip to content

Commit daf581d

Browse files
committed
1 parent 35034ed commit daf581d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ export function parseGitmodules(raw: string): Submodule[] {
601601
}
602602

603603
export function parseGitCommit(raw: string): Commit | null {
604-
const match = /^([0-9a-f]{40})\n(.*)\n(.*)\n([^]*)$/m.exec(raw.trim());
604+
const match = /^([0-9a-f]{40})\n(.*)\n(.*)(\n([^]*))?$/m.exec(raw.trim());
605605
if (!match) {
606606
return null;
607607
}

0 commit comments

Comments
 (0)