Skip to content

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

Description

@seb-elico

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:

  • account-financial-reporting 10.0
  • account-financial-tools 10.0
  • connector 10.0
  • queue 10.0
  • reporting-engine 10.0
  • server-tools 10.0
  • web 10.0

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'...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions