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:50 +01:00
parent 2873cde704
commit 8a06c69bcc
8 changed files with 16 additions and 16 deletions

View file

@ -2,6 +2,6 @@
This addon depends on:
- [product](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-product)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [resource](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-resource)
- [product](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-product)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)
- [resource](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-resource)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [stock_landed_costs](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock_landed_costs)
- [mrp](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp)
- [stock_landed_costs](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock_landed_costs)
- [mrp](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp)

View file

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

View file

@ -2,4 +2,4 @@
This addon depends on:
- [mrp](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp)
- [mrp](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp_subcontracting)
- [stock_dropshipping](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock_dropshipping)
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp_subcontracting)
- [stock_dropshipping](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock_dropshipping)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp_subcontracting)
- [purchase_mrp](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-purchase_mrp)
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp_subcontracting)
- [purchase_mrp](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-purchase_mrp)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp_subcontracting)
- [repair](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-repair)
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp_subcontracting)
- [repair](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-repair)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [stock_landed_costs](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock_landed_costs)
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/e8e8678176d39f14faf1d1666bd7344bba486fd5/odoo-bringout-oca-ocb-mrp_subcontracting)
- [stock_landed_costs](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock_landed_costs)
- [mrp_subcontracting](https://github.com/bringout/oca-ocb-mrp/tree/2873cde70408ed3f39d269fb77e087c42c4bab87/odoo-bringout-oca-ocb-mrp_subcontracting)