chore: локальный запуск без Docker и SourceCraft; fix: относительный GIT_CLONE_DIR

- make demo-repo: локальный bare-репозиторий загрузок из infra/uploads-template
- make run: бот на этой машине (SQLite, настройки из .env)
- fix: при относительном clone_dir клон уезжал в data/data/uploads (git clone
  запускается из родительской папки) — путь теперь абсолютный; тест на это
- data/ в .gitignore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-15 19:53:40 +03:00
co-authored by Claude Opus 5.5
parent b5fbbaf904
commit 0f27f405a7
4 changed files with 31 additions and 3 deletions
+2 -1
View File
@@ -47,7 +47,8 @@ class CommitInfo:
class UploadsRepo:
def __init__(self, settings: GitSettings) -> None:
self._s = settings
self._dir = settings.clone_dir
# absolute: git clone runs from the parent dir, a relative path would land one level deeper
self._dir = settings.clone_dir.resolve()
self._lock = asyncio.Lock()
self._fetched_at: float | None = None
self._key_path = self._materialize_key()