We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35034ed commit daf581dCopy full SHA for daf581d
1 file changed
extensions/git/src/git.ts
@@ -601,7 +601,7 @@ export function parseGitmodules(raw: string): Submodule[] {
601
}
602
603
export function parseGitCommit(raw: string): Commit | null {
604
- const match = /^([0-9a-f]{40})\n(.*)\n(.*)\n([^]*)$/m.exec(raw.trim());
+ const match = /^([0-9a-f]{40})\n(.*)\n(.*)(\n([^]*))?$/m.exec(raw.trim());
605
if (!match) {
606
return null;
607
0 commit comments