odoo/o-spreadsheet#1789

Created by BI, Rémi Rahir (rar)
label
odoo:14.0-build-with-no-git-rar
head
a3e75a55ecd15714212b5e060756a45eb89fd512
target
14.0
merged
2 years ago by BI, Lucas Lefèvre (lul)
forward-ports

[FIX] config: Allow to build outside of git repository

The lib used to extract the hash commit will raise when run outside a git repository. Since we need to perform this action on runbot, we catch the error in that specific case.

## Description:

description of this task, what is implemented and why it is implemented that way.

Odoo task ID : [TASK_ID](https://www.odoo.com/web#id=TASK_ID&action=333&active_id=2328&model=project.task&view_type=form&cids=1&menu_id=4720)

## review checklist

- [ ] feature is organized in plugin, or UI components
- [ ] support of duplicate sheet (deep copy)
- [ ] in model/core: ranges are Range object, and can be adapted (adaptRanges)
- [ ] in model/UI: ranges are strings (to show the user)
- [ ] undo-able commands (uses this.history.update)
- [ ] multiuser-able commands (has inverse commands and transformations where needed)
- [ ] new/updated/removed commands are documented
- [ ] exportable in excel
- [ ] translations (\_lt("qmsdf %s", abc))
- [ ] unit tested
- [ ] clean commented code
- [ ] track breaking changes
- [ ] doc is rebuild (npm run doc)
- [ ] status is correct in Odoo