From 582ca4e47435506af943bfab079a238a1b7eca33 Mon Sep 17 00:00:00 2001 From: Pablo Esteban Date: Tue, 25 Jun 2024 10:57:56 +0200 Subject: [PATCH] [FIX] Treat all references containing / as remote references --- odoo_filter_addons/main.py | 2 +- odoo_filter_addons/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/odoo_filter_addons/main.py b/odoo_filter_addons/main.py index c6ae009..77cf2c8 100644 --- a/odoo_filter_addons/main.py +++ b/odoo_filter_addons/main.py @@ -97,7 +97,7 @@ def filter_repo(agg_path, rname, repo, modules): for merge in repo["merges"]: merge = merge.strip() remote, ref = merge.split() - if ref.startswith("refs/"): + if "/" in ref: commit = git("-C", rpath, "ls-remote", "--exit-code", remote, ref).strip().split()[0] lines.append(f"{merge} {commit}") elif len(ref) == 40: diff --git a/odoo_filter_addons/version.py b/odoo_filter_addons/version.py index f708a9b..7b1e312 100644 --- a/odoo_filter_addons/version.py +++ b/odoo_filter_addons/version.py @@ -1 +1 @@ -__version__ = "1.3.2" +__version__ = "1.3.3"