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:52 +01:00
parent 64e9e56642
commit f4d845b5d5
6 changed files with 19 additions and 19 deletions

View file

@ -2,12 +2,12 @@
This addon depends on: This addon depends on:
- [analytic](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-analytic) - [analytic](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-analytic)
- [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)
- [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)
- [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)
- [rating](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-rating) - [rating](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-rating)
- [resource](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-resource) - [resource](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-resource)
- [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)
- [web_tour](https://github.com/bringout/oca-ocb-web/tree/b02abf5667ee77c7bb75f0fc96a520d6c1f80ec6/odoo-bringout-oca-ocb-web_tour) - [web_tour](https://github.com/bringout/oca-ocb-web/tree/719f92b140a2b8619d30657c4a80d7fcdb8ec1b9/odoo-bringout-oca-ocb-web_tour)
- [digest](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-digest) - [digest](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-digest)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [project](https://github.com/bringout/oca-ocb-project/tree/c42e326277183f2f00a74e72411a653fd86f73b4/odoo-bringout-oca-ocb-project) - [project](https://github.com/bringout/oca-ocb-project/tree/64e9e56642f0a947deeaf25ce46dad6827ccc7ba/odoo-bringout-oca-ocb-project)
- [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/8ba7c48b948434a6e0f007fa4a42b2c2404b816a/odoo-bringout-oca-ocb-hr_expense) - [hr_expense](https://github.com/bringout/oca-ocb-hr/tree/dc4d96d97a2407971c6e29466115e665faf965ac/odoo-bringout-oca-ocb-hr_expense)

View file

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

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [mrp_account](https://github.com/bringout/oca-ocb-accounting/tree/ddf6c0d80189f2cd640968f14b2d1346fca52a9f/odoo-bringout-oca-ocb-mrp_account) - [mrp_account](https://github.com/bringout/oca-ocb-accounting/tree/8e05e720e13ae384034b75f924ebae76866d47fe/odoo-bringout-oca-ocb-mrp_account)
- [project](https://github.com/bringout/oca-ocb-project/tree/c42e326277183f2f00a74e72411a653fd86f73b4/odoo-bringout-oca-ocb-project) - [project](https://github.com/bringout/oca-ocb-project/tree/64e9e56642f0a947deeaf25ce46dad6827ccc7ba/odoo-bringout-oca-ocb-project)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [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)
- [project](https://github.com/bringout/oca-ocb-project/tree/c42e326277183f2f00a74e72411a653fd86f73b4/odoo-bringout-oca-ocb-project) - [project](https://github.com/bringout/oca-ocb-project/tree/64e9e56642f0a947deeaf25ce46dad6827ccc7ba/odoo-bringout-oca-ocb-project)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/8ba7c48b948434a6e0f007fa4a42b2c2404b816a/odoo-bringout-oca-ocb-hr_timesheet) - [hr_timesheet](https://github.com/bringout/oca-ocb-hr/tree/dc4d96d97a2407971c6e29466115e665faf965ac/odoo-bringout-oca-ocb-hr_timesheet)
- [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/8ba7c48b948434a6e0f007fa4a42b2c2404b816a/odoo-bringout-oca-ocb-hr_holidays) - [hr_holidays](https://github.com/bringout/oca-ocb-hr/tree/dc4d96d97a2407971c6e29466115e665faf965ac/odoo-bringout-oca-ocb-hr_holidays)