feat(git): Git-Backend über HTTPS + PAT (ADR 0003): Krypto, SSRF-Policy, git-Client ohne Arbeitskopie, Sync/Konflikte, /api/git/*, Hooks und Tests

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
dev-bot BotandClaude Sonnet 5.5 committed 2026-11-25 14:34:11 +00:00
1 parent d2801b2d6c
commit fe9efc155e
18 files changed
+1837 -9

No files matched your search

+2 -3
View File
@@ -92,9 +92,8 @@ export const createGitConnectionRepository = (db)=>({
export const createBrewGitLinkRepository = (db)=>({
// Legt den Link an oder ersetzt ihn (höchstens einer pro Brew)
async upsert({ brewId, ...rest }) {
const row = { brew_id: brewId, ...toRow(LINK, rest) };
const { brew_id, ...set } = row;
return rowToLink(await db.insertInto('brew_git_links').values(row)
const set = toRow(LINK, rest);
return rowToLink(await db.insertInto('brew_git_links').values({ brew_id: brewId, ...set })
.onConflict((oc)=>oc.column('brew_id').doUpdateSet(set)).returningAll().executeTakeFirstOrThrow());
},
async findByBrewId(brewId) {