Skip to content

Commit

Permalink
fixed blank initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagoon committed Dec 3, 2024
1 parent 5e55f98 commit e6a3dc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/server/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,15 @@ export async function ensureGitRepoAndCommitBlocks(
await git.add({ fs, dir: cachePath, filepath: "." });

// Create commit with block hashes in message
const commitMessage = buildContextStatuses
let commitMessage = buildContextStatuses
.filter((status) => status.hash)
.map((status) => `${status.blockKey}: ${status.hash}`)
.join("\n");

if (!commitMessage) {
commitMessage = "Initial commit";
}

await git.commit({
fs,
dir: cachePath,
Expand Down

0 comments on commit e6a3dc7

Please sign in to comment.