feat: daemon polls Gitea for new commits before sync_git_to_svn

This commit is contained in:
2026-06-24 11:45:05 +02:00
parent 981daaef30
commit 4f41bd3488
2 changed files with 4 additions and 10 deletions
+2 -1
View File
@@ -13,7 +13,7 @@ from typing import Dict, List, Optional, Tuple
from .config import MirrorConfig
from .mirror import Mirror
from .gitea import push_to_gitea, GiteaError
from .gitea import fetch_from_gitea, push_to_gitea, GiteaError
from .git_to_svn import sync_git_to_svn
from .svn import (
SVNPathChange,
@@ -485,6 +485,7 @@ def run_daemon_loop(mirrors: Dict[str, Mirror]) -> None:
svn_count = sync_all(m)
if svn_count:
push_to_gitea(m)
fetch_from_gitea(m)
git_count = sync_git_to_svn(m)
if svn_count or git_count:
last_sync[mid] = now