1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

save_added_date now uses get_apps_repo

This commit is contained in:
Félix Piédallu 2024-08-13 09:11:50 +02:00 committed by Félix Piédallu
parent bac5db33b6
commit eedb3abdc0

View file

@ -7,14 +7,9 @@ from datetime import datetime
from git import Repo, Commit
from pathlib import Path
import logging
from typing import TYPE_CHECKING, Callable
from typing import Callable
import appslib.get_apps_repo as get_apps_repo
if TYPE_CHECKING:
REPO_APPS_ROOT = Path()
else:
from appslib.utils import REPO_APPS_ROOT
def git_bisect(repo: Repo, is_newer: Callable[[Commit], bool]) -> Commit | None:
# Start with whole repo