Elico-Corp / odoo-docker

Simple yet powerful Odoo image for Docker based on OCB code and maintained by Elico Corporation.
https://hub.docker.com/r/elicocorp/odoo/
GNU Lesser General Public License v3.0
77 stars 93 forks source link

Randomly cloning default branch instead of inherited branch from parent repo #114

Open seb-elico opened 6 years ago

seb-elico commented 6 years ago

By default, if no branch is specified for a repo in oca_dependencies.txt, the branch of the parent repo should be used (or the default branch of the repo if there's no parent repo).

For instance, when cloning account-financial-reporting 10.0, the following repos will be cloned:

However, it can happen that the default branch of a child repo would be cloned, for instance reporting-engine 11.0.

It seems like the root cause was a network issue during cloning, which has triggered a "retry" of the clone. Below is the log of when that happenned for reference:

Cloning: account-financial-reporting 10.0
Cloning into '/opt/odoo/additional_addons/account-financial-reporting'...
Cloning: account-financial-tools
Cloning into '/opt/odoo/additional_addons/account-financial-tools'...
Cloning: reporting-engine
Cloning into '/opt/odoo/additional_addons/reporting-engine'...
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning: reporting-engine
Cloning into '/opt/odoo/additional_addons/reporting-engine'...
Cloning: connector
Cloning into '/opt/odoo/additional_addons/connector'...
error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Cloning: connector
Cloning into '/opt/odoo/additional_addons/connector'...
Cloning: queue
Cloning into '/opt/odoo/additional_addons/queue'...
Cloning: server-tools
Cloning into '/opt/odoo/additional_addons/server-tools'...
Cloning: web
Cloning into '/opt/odoo/additional_addons/web'...