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:12 +01:00
parent 225a8ed17c
commit 4c92f77132
24 changed files with 27 additions and 27 deletions

View file

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

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -3,4 +3,4 @@
This addon depends on:
- [stock_available](https://github.com/bringout/oca-technical)
- [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,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/4694b2a7718eea6743646f61d172cd8cd8c0896b/odoo-bringout-oca-ocb-barcodes)
- [barcodes](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-barcodes)

View file

@ -3,4 +3,4 @@
This addon depends on:
- [barcodes_generator_abstract](https://github.com/bringout/oca-warehouse)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -3,4 +3,4 @@
This addon depends on:
- [barcodes_generator_abstract](https://github.com/bringout/oca-warehouse)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

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

View file

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

View file

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

View file

@ -3,4 +3,4 @@
This addon depends on:
- [product_multi_barcode](https://github.com/bringout/oca-warehouse)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,8 +2,8 @@
This addon depends on:
- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/4694b2a7718eea6743646f61d172cd8cd8c0896b/odoo-bringout-oca-ocb-barcodes)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [barcodes](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-barcodes)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)
- [web_widget_numeric_step](https://github.com/bringout/oca-technical)
- [web](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-web)
- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail)
- [web](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-web)
- [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail)

View file

@ -3,4 +3,4 @@
This addon depends on:
- [stock_barcodes](https://github.com/bringout/oca-warehouse)
- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock_picking_batch)
- [stock_picking_batch](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock_picking_batch)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)

View file

@ -3,4 +3,4 @@
This addon depends on:
- [stock_request](https://github.com/bringout/oca-technical)
- [barcodes](https://github.com/bringout/oca-ocb-technical/tree/4694b2a7718eea6743646f61d172cd8cd8c0896b/odoo-bringout-oca-ocb-barcodes)
- [barcodes](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-barcodes)

View file

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

@ -3,4 +3,4 @@
This addon depends on:
- [stock_request](https://github.com/bringout/oca-technical)
- [purchase_stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-purchase_stock)
- [purchase_stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-purchase_stock)

View file

@ -2,5 +2,5 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)
- [delivery_procurement_group_carrier](https://github.com/bringout/oca-workflow-process)

View file

@ -2,4 +2,4 @@
This addon depends on:
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/81e6496fce389797413505803016d3ac487ede13/odoo-bringout-oca-ocb-stock)
- [stock](https://github.com/bringout/oca-ocb-warehouse/tree/c945b84263caf64889385d3735546b1fd94a8271/odoo-bringout-oca-ocb-stock)