mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Merge pull request #2068 from Salamandar/simplify_list_builder
list_builder: just take the app repository's HEAD
This commit is contained in:
commit
dc16b22873
1 changed files with 1 additions and 11 deletions
|
@ -197,17 +197,7 @@ def build_app_dict(app, infos):
|
||||||
|
|
||||||
# If using head, find the most recent meaningful commit in logs
|
# If using head, find the most recent meaningful commit in logs
|
||||||
if infos["revision"] == "HEAD":
|
if infos["revision"] == "HEAD":
|
||||||
relevant_files = [
|
infos["revision"] = repo.head.commit.hexsha
|
||||||
"manifest.json",
|
|
||||||
"manifest.toml",
|
|
||||||
"config_panel.toml",
|
|
||||||
"hooks/",
|
|
||||||
"scripts/",
|
|
||||||
"conf/",
|
|
||||||
"sources/",
|
|
||||||
]
|
|
||||||
relevant_commits = repo.iter_commits(paths=relevant_files, full_history=True, all=True)
|
|
||||||
infos["revision"] = next(relevant_commits).hexsha
|
|
||||||
|
|
||||||
# Otherwise, validate commit exists
|
# Otherwise, validate commit exists
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue