'Failed to save self-transfer to repo (non-blocking)');
});
}
}
}
@ -302,6 +309,18 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -302,6 +309,18 @@ Your commits will all be signed by your Nostr keys and saved to the event files
}
awaitworkGit.add(filesToAdd);
// Configure git user.name and user.email for this repository
// This is required for git commits to work (committer identity)
// We use a generic identity since the server is making the commit on behalf of the system
// The --author flag sets the author, but we still need committer identity configured
logger.debug({repoPath,npub,repoName},'Configured git user.name and user.email for repository');
}catch(configError){
logger.warn({repoPath,npub,repoName,error: configError},'Failed to set git config, commit may fail');
}
// Commit files together
awaitworkGit.commit('Initial commit',filesToAdd,{
'--author':`${authorName} <${authorEmail}>`
@ -371,8 +390,13 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -371,8 +390,13 @@ Your commits will all be signed by your Nostr keys and saved to the event files
}
if(announcementToUse){
// Save announcement to repo (this will create initial commit if repo is empty)
@ -616,12 +640,12 @@ Your commits will all be signed by your Nostr keys and saved to the event files
@@ -616,12 +640,12 @@ Your commits will all be signed by your Nostr keys and saved to the event files
}
// Ensure announcement is saved to nostr/repo-events.jsonl (non-blocking - repo is usable without it)