Skip to content
Merged
Prev Previous commit
Next Next commit
fix multiple commit order issue
Signed-off-by: shmck <[email protected]>
  • Loading branch information
ShMcK committed Jun 21, 2020
commit 67b01953451d76c8ac68d19b21cde135b80a57f1
6 changes: 4 additions & 2 deletions src/utils/commits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export async function getCommits({
commits[position] = [commit.hash];
} else {
// add to the list
commits[position].push(commit.hash);
commits[position].unshift(commit.hash);
}
positions.unshift(position);
} else {
Expand All @@ -84,7 +84,7 @@ export async function getCommits({
commits.INIT = [commit.hash];
} else {
// add to the list
commits.INIT.push(commit.hash);
commits.INIT.unshift(commit.hash);
}
positions.unshift("INIT");
}
Expand All @@ -101,5 +101,7 @@ export async function getCommits({
await rmdir(tmpDir, { recursive: true });
}

console.log(commits);

return commits;
}