Skip to content

Commit

Permalink
Nuking history if exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeychernyshev committed Aug 26, 2024
1 parent 22b22d1 commit afd2682
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ export async function getFullHistory(gameConfig, SCC, folder) {
export async function getLastCommit(gameConfig, SCC, folder) {
const history = new Map();

// we are not supposed to keep history, nuke it if it exists!
if (fs.existsSync(historyRecord)) {
fs.unlinkSync(historyRecord);
}

history.set(new Date().toDateString(), {
clusters: await processRepo(gameConfig, SCC, folder),
});
Expand Down

0 comments on commit afd2682

Please sign in to comment.