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:40 +01:00
parent b9712bbceb
commit 5d2a6e1391
12 changed files with 21 additions and 21 deletions

View file

@ -2,4 +2,4 @@
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)

View file

@ -2,7 +2,7 @@
This addon depends on: This addon depends on:
- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-accounting_pdf_reports) - [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-accounting_pdf_reports)
- [om_account_budget](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_account_budget) - [om_account_budget](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-om_account_budget)
- [om_recurring_payments](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_recurring_payments) - [om_recurring_payments](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-om_recurring_payments)
- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_account_daily_reports) - [om_account_daily_reports](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-om_account_daily_reports)

View file

@ -2,4 +2,4 @@
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)

View file

@ -2,4 +2,4 @@
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)

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)
- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-accounting_pdf_reports) - [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-accounting_pdf_reports)

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)
- [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:
- [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,7 +2,7 @@
This addon depends on: This addon depends on:
- [sale](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-sale) - [sale](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-sale)
- [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)
- [website_slides](https://github.com/bringout/oca-ocb-website/tree/33ba6b76d9cd1aa463f8ac53c8c5d7bc407487ed/odoo-bringout-oca-ocb-website_slides) - [website_slides](https://github.com/bringout/oca-ocb-website/tree/94cd33d0b8cad01b542f0b8c0142bfc5d0240b1a/odoo-bringout-oca-ocb-website_slides)
- [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)

View file

@ -2,5 +2,5 @@
This addon depends on: This addon depends on:
- [sale](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-sale) - [sale](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-sale)
- [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:
- [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

@ -2,4 +2,4 @@
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)