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:33:33 +01:00
parent df4bf919ce
commit 937be5271b
4 changed files with 7 additions and 7 deletions

View file

@ -2,5 +2,5 @@
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)
- [dms_field](https://github.com/bringout/oca-technical) - [dms_field](https://github.com/bringout/oca-technical)

View file

@ -2,7 +2,7 @@
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)
- [http_routing](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-http_routing) - [http_routing](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-http_routing)
- [portal](https://github.com/bringout/oca-ocb-website/tree/33ba6b76d9cd1aa463f8ac53c8c5d7bc407487ed/odoo-bringout-oca-ocb-portal) - [portal](https://github.com/bringout/oca-ocb-website/tree/94cd33d0b8cad01b542f0b8c0142bfc5d0240b1a/odoo-bringout-oca-ocb-portal)
- [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,5 +2,5 @@
This addon depends on: This addon depends on:
- [hr](https://github.com/bringout/oca-ocb-hr/tree/8ba7c48b948434a6e0f007fa4a42b2c2404b816a/odoo-bringout-oca-ocb-hr) - [hr](https://github.com/bringout/oca-ocb-hr/tree/dc4d96d97a2407971c6e29466115e665faf965ac/odoo-bringout-oca-ocb-hr)
- [dms_field](https://github.com/bringout/oca-technical) - [dms_field](https://github.com/bringout/oca-technical)

View file

@ -3,4 +3,4 @@
This addon depends on: This addon depends on:
- [dms](https://github.com/bringout/oca-technical) - [dms](https://github.com/bringout/oca-technical)
- [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)