fix: wiki push needs credential helper for localhost Gitea

This commit is contained in:
mineracks 2026-04-02 15:18:34 +10:00
parent 2b99fb8bb4
commit f6b3bde95d

View File

@ -547,6 +547,9 @@ sync_wiki() {
git remote add gitea "$gitea_wiki_url"
fi
# Ensure credential helper is configured (uses same store as main repos)
git config credential.helper store
git push gitea '+refs/heads/*:refs/heads/*' 2>>"$LOG_FILE" || {
warn "wiki push failed for ${gitea_org}/${repo}"
return 0