index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | asp.in | 16 |
@@ -55,7 +55,17 @@ update_all() { done } -update_packages() { +update_local_branches() { + local r=0 + + while read -r branchname; do + git branch -qf "$branchname" "refs/remotes/$branchname" || r=1 + done < <(git branch) + + return "$r" +} + +update_remote_branches() { local refspecs=() remote pkgname declare -A refspec_map @@ -77,6 +87,10 @@ update_packages() { done } +update_packages() { + update_remote_branches "$@" && update_local_branches +} + migrate_bare_repo() { files=(branches hooks info objects logs refs config description {FETCH_,}HEAD) |