[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.master
parent
ead3f039df
commit
80f2f64695
6
odoo.py
6
odoo.py
|
@ -82,7 +82,7 @@ def cmd_setup_git():
|
|||
run('git','config','remote.odoo.pushurl','git@github.com:odoo/odoo.git')
|
||||
run('git','config','--add','remote.odoo.fetch','dummy')
|
||||
run('git','config','--unset-all','remote.odoo.fetch')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/heads/*:refs/remotes/odoo/heads/*')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/heads/*:refs/remotes/odoo/*')
|
||||
# setup odoo-dev remote
|
||||
run('git','config','remote.odoo-dev.url','https://github.com/odoo-dev/odoo.git')
|
||||
run('git','config','remote.odoo-dev.pushurl','git@github.com:odoo-dev/odoo.git')
|
||||
|
@ -100,7 +100,7 @@ def cmd_setup_git_dev():
|
|||
# setup odoo-dev remote
|
||||
run('git','config','--add','remote.odoo-dev.fetch','dummy')
|
||||
run('git','config','--unset-all','remote.odoo-dev.fetch')
|
||||
run('git','config','--add','remote.odoo-dev.fetch','+refs/heads/*:refs/remotes/odoo-dev/heads/*')
|
||||
run('git','config','--add','remote.odoo-dev.fetch','+refs/heads/*:refs/remotes/odoo-dev/*')
|
||||
run('git','config','--add','remote.odoo-dev.fetch','+refs/pull/*:refs/remotes/odoo-dev/pull/*')
|
||||
run('git','remote','update')
|
||||
|
||||
|
@ -110,7 +110,7 @@ def cmd_setup_git_review():
|
|||
# setup odoo-dev remote
|
||||
run('git','config','--add','remote.odoo.fetch','dummy')
|
||||
run('git','config','--unset-all','remote.odoo.fetch')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/heads/*:refs/remotes/odoo/heads/*')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/heads/*:refs/remotes/odoo/*')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/tags/*:refs/remotes/odoo/tags/*')
|
||||
run('git','config','--add','remote.odoo.fetch','+refs/pull/*:refs/remotes/odoo/pull/*')
|
||||
|
||||
|
|
Loading…
Reference in New Issue