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:
parent
917a1f1a6e
commit
f50f09661f
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue