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:
parent
bac5db33b6
commit
eedb3abdc0
1 changed files with 1 additions and 6 deletions
|
@ -7,14 +7,9 @@ from datetime import datetime
|
||||||
from git import Repo, Commit
|
from git import Repo, Commit
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import logging
|
import logging
|
||||||
from typing import TYPE_CHECKING, Callable
|
from typing import Callable
|
||||||
import appslib.get_apps_repo as get_apps_repo
|
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:
|
def git_bisect(repo: Repo, is_newer: Callable[[Commit], bool]) -> Commit | None:
|
||||||
# Start with whole repo
|
# Start with whole repo
|
||||||
|
|
Loading…
Add table
Reference in a new issue