From fe3b41dbbf9e29eecb26c0f3d2a8f30ee9e0d284 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 26 Dec 2011 20:39:25 +0100 Subject: [PATCH] Prune --- build-scripts/sync_git_google.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-scripts/sync_git_google.sh b/build-scripts/sync_git_google.sh index ed156db8cb..afeb615b5f 100755 --- a/build-scripts/sync_git_google.sh +++ b/build-scripts/sync_git_google.sh @@ -4,14 +4,15 @@ # [remote "google"] # url = https://code.google.com/p/osmand/ # fetch = +refs/heads/*:refs/remotes/google/* -git pull google +git fetch origin -p +git fetch google --all # Delete old branches for f in `git for-each-ref --format='%(refname)' | grep 'refs/remotes/google'` do Branch=`echo $f | cut -d '/' -f 4` if [[ -z `git show-ref refs/remotes/origin/$Branch` ]]; then - git push google :'$Branch' + git push google :$Branch fi done