Prune
This commit is contained in:
parent
71b350adde
commit
fe3b41dbbf
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue