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

app_caches: git pull when downloading all branches

This commit is contained in:
Salamandar 2024-08-19 17:27:47 +02:00 committed by Salamandar
parent 917a1f1a6e
commit f50f09661f

View file

@ -75,6 +75,7 @@ def app_cache_clone_or_update(
if fetch_all_branches:
repo.git.remote("set-branches", "origin", "*")
repo.remote("origin").fetch()
repo.remote("origin").pull()
else:
if repo.active_branch != branch:
all_branches = [str(b) for b in repo.branches]