Skip to content

Commit b23acf1

Browse files
committed
#3 Provide the --date-order argument to git log, to ensure parents are correctly ordered for rendering.
1 parent 933de14 commit b23acf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export class DataSource {
256256

257257
private async getGitLog(branch: string, num: number, showRemoteBranches: boolean) {
258258
return new Promise<GitCommit[]>((resolve) => {
259-
let args = ['log', '--max-count=' + num, '--format=' + gitLogFormat], stdout = '', err = false;
259+
let args = ['log', '--max-count=' + num, '--format=' + gitLogFormat, '--date-order'], stdout = '', err = false;
260260
if (branch !== '') {
261261
args.push(escapeRefName(branch));
262262
} else {

0 commit comments

Comments
 (0)