[FIX] odoo.py fix fetching of git remotes

remove the useless heads in local refs so that:

git checkout -b master odoo/master

and

git checkout -b master-name odoo-dev/master-name

works.