From 5d2a6e1391bfff5af27a432ada09a19bea967160 Mon Sep 17 00:00:00 2001 From: Ernad Husremovic Date: Sun, 16 Nov 2025 17:34:40 +0100 Subject: [PATCH] Enhance validate_fix_submodules.py to detect and auto-fix orphaned worktrees MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 8 ++++---- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md | 8 ++++---- .../doc/DEPENDENCIES.md | 4 ++-- .../doc/DEPENDENCIES.md | 2 +- .../doc/DEPENDENCIES.md | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md index 8377887..0fa20b8 100644 --- a/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-accounting_pdf_reports/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md index 9dc8cea..0108d9a 100644 --- a/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_accountant/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-accounting_pdf_reports) -- [om_account_budget](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_account_budget) -- [om_recurring_payments](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_recurring_payments) -- [om_account_daily_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-om_account_daily_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/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-om_account_budget) +- [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/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-om_account_daily_reports) diff --git a/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md index 8377887..0fa20b8 100644 --- a/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_asset/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md index 8377887..0fa20b8 100644 --- a/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_budget/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md index e9b2d79..5f9eed7 100644 --- a/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_daily_reports/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/ddf6c0d80189f2cd640968f14b2d1346fca52a9f/odoo-bringout-oca-ocb-account) -- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/2a8609fdffc047d157edae083c70978224eb7153/odoo-bringout-odoomates-accounting_pdf_reports) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/8e05e720e13ae384034b75f924ebae76866d47fe/odoo-bringout-oca-ocb-account) +- [accounting_pdf_reports](https://github.com/bringout/odoomates/tree/b9712bbceb773cd362a6c18561b1a9e945712857/odoo-bringout-odoomates-accounting_pdf_reports) diff --git a/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md index 1428425..1db7520 100644 --- a/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_account_followup/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [account](https://github.com/bringout/oca-ocb-accounting/tree/ddf6c0d80189f2cd640968f14b2d1346fca52a9f/odoo-bringout-oca-ocb-account) -- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) +- [account](https://github.com/bringout/oca-ocb-accounting/tree/8e05e720e13ae384034b75f924ebae76866d47fe/odoo-bringout-oca-ocb-account) +- [mail](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-mail) diff --git a/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md index ffa7c09..3258723 100644 --- a/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_data_remove/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md index ffa7c09..3258723 100644 --- a/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_fiscal_year/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md index efbf656..1e60fef 100644 --- a/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_hospital/doc/DEPENDENCIES.md @@ -2,7 +2,7 @@ This addon depends on: -- [sale](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-sale) -- [mail](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-mail) -- [website_slides](https://github.com/bringout/oca-ocb-website/tree/33ba6b76d9cd1aa463f8ac53c8c5d7bc407487ed/odoo-bringout-oca-ocb-website_slides) -- [hr](https://github.com/bringout/oca-ocb-hr/tree/8ba7c48b948434a6e0f007fa4a42b2c2404b816a/odoo-bringout-oca-ocb-hr) +- [sale](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-sale) +- [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/94cd33d0b8cad01b542f0b8c0142bfc5d0240b1a/odoo-bringout-oca-ocb-website_slides) +- [hr](https://github.com/bringout/oca-ocb-hr/tree/dc4d96d97a2407971c6e29466115e665faf965ac/odoo-bringout-oca-ocb-hr) diff --git a/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md index 1d068a6..4feb842 100644 --- a/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_mass_confirm_cancel/doc/DEPENDENCIES.md @@ -2,5 +2,5 @@ This addon depends on: -- [sale](https://github.com/bringout/oca-ocb-sale/tree/180760d29eed276994d9dc061dc7089d5bfe0014/odoo-bringout-oca-ocb-sale) -- [purchase](https://github.com/bringout/oca-ocb-core/tree/5d1ce43101a4d83b4ac660942e4a7a462823262f/odoo-bringout-oca-ocb-purchase) +- [sale](https://github.com/bringout/oca-ocb-sale/tree/671ef3554c94fdec41d5dc2b4451bdcfb9abf66e/odoo-bringout-oca-ocb-sale) +- [purchase](https://github.com/bringout/oca-ocb-core/tree/81050e9b17d26ece0e41494a9f310351df1bddfc/odoo-bringout-oca-ocb-purchase) diff --git a/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md index 8377887..0fa20b8 100644 --- a/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-om_recurring_payments/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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) diff --git a/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md b/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md index eaca6ad..a58fad6 100644 --- a/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md +++ b/odoo-bringout-odoomates-task_check_list/doc/DEPENDENCIES.md @@ -2,4 +2,4 @@ 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)