Enhance validate_fix_submodules.py to detect and auto-fix orphaned worktrees

- Add detection of orphaned worktree directories (empty dirs or worktrees/ paths without .git)
- Implement automatic removal of orphaned worktrees with --fix option
- Remove orphaned worktrees oca-ocb-accounting-16.1 and oca-ocb-core-16.1
- Update script documentation to explain worktree handling

🤖 assisted by claude

🤖 assisted by claude
This commit is contained in:
Ernad Husremovic 2025-11-16 17:34:07 +01:00
parent 4c3046d5ae
commit 3e3033ad3b
37 changed files with 42 additions and 42 deletions

View file

@ -2,7 +2,7 @@
This addon depends on: This addon depends on:
- [account](https://github.com/bringout/oca-ocb-accounting/tree/ddf6c0d80189f2cd640968f14b2d1346fca52a9f/odoo-bringout-oca-ocb-account) - [account](https://github.com/bringout/oca-ocb-accounting/tree/8e05e720e13ae384034b75f924ebae76866d47fe/odoo-bringout-oca-ocb-account)
- [board](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-board) - [board](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-board)
- [report_xlsx](https://github.com/bringout/oca-report) - [report_xlsx](https://github.com/bringout/oca-report)
- [date_range](https://github.com/bringout/oca-technical) - [date_range](https://github.com/bringout/oca-technical)

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [mis_builder](https://github.com/bringout/oca-report) - [mis_builder](https://github.com/bringout/oca-report)
- [account](https://github.com/bringout/oca-ocb-accounting/tree/ddf6c0d80189f2cd640968f14b2d1346fca52a9f/odoo-bringout-oca-ocb-account) - [account](https://github.com/bringout/oca-ocb-accounting/tree/8e05e720e13ae384034b75f924ebae76866d47fe/odoo-bringout-oca-ocb-account)

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [mis_builder_budget](https://github.com/bringout/oca-report) - [mis_builder_budget](https://github.com/bringout/oca-report)
- [purchase](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-purchase) - [purchase](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-purchase)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)
- [base_report_to_printer](https://github.com/bringout/oca-report) - [base_report_to_printer](https://github.com/bringout/oca-report)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base_setup](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base_setup) - [base_setup](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base_setup)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [sale_stock](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-sale_stock) - [sale_stock](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-sale_stock)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/846a76fd4481817312d04dbc363203087a77734d/odoo-bringout-oca-ocb-spreadsheet_dashboard) - [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/cf7c1f51cf7ba822680f21e0ea988aa6e1bdcf16/odoo-bringout-oca-ocb-spreadsheet_dashboard)
- [sql_request_abstract](https://github.com/bringout/oca-report) - [sql_request_abstract](https://github.com/bringout/oca-report)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [bi_view_editor](https://github.com/bringout/oca-report) - [bi_view_editor](https://github.com/bringout/oca-report)
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/846a76fd4481817312d04dbc363203087a77734d/odoo-bringout-oca-ocb-spreadsheet_dashboard) - [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/cf7c1f51cf7ba822680f21e0ea988aa6e1bdcf16/odoo-bringout-oca-ocb-spreadsheet_dashboard)

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [queue_job](https://github.com/bringout/oca-technical) - [queue_job](https://github.com/bringout/oca-technical)
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/846a76fd4481817312d04dbc363203087a77734d/odoo-bringout-oca-ocb-spreadsheet_dashboard) - [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/cf7c1f51cf7ba822680f21e0ea988aa6e1bdcf16/odoo-bringout-oca-ocb-spreadsheet_dashboard)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base_automation](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base_automation) - [base_automation](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base_automation)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [uom](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-uom) - [uom](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-uom)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web_editor](https://github.com/bringout/oca-ocb-web/tree/b02abf5667ee77c7bb75f0fc96a520d6c1f80ec6/odoo-bringout-oca-ocb-web_editor) - [web_editor](https://github.com/bringout/oca-ocb-web/tree/719f92b140a2b8619d30657c4a80d7fcdb8ec1b9/odoo-bringout-oca-ocb-web_editor)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [base](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-base) - [base](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-base)
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web) - [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/846a76fd4481817312d04dbc363203087a77734d/odoo-bringout-oca-ocb-spreadsheet_dashboard) - [spreadsheet_dashboard](https://github.com/bringout/oca-ocb-report/tree/cf7c1f51cf7ba822680f21e0ea988aa6e1bdcf16/odoo-bringout-oca-ocb-spreadsheet_dashboard)
- [sql_request_abstract](https://github.com/bringout/oca-report) - [sql_request_abstract](https://github.com/bringout/oca-report)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)
- [sql_export](https://github.com/bringout/oca-report) - [sql_export](https://github.com/bringout/oca-report)

View file

@ -2,4 +2,4 @@
This addon depends on: This addon depends on:
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) - [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)