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
parent df54d3eb08
commit 0cfe255819

View file

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