From 97c77d7503dd70542f725c22a26bf583dcc37f14 Mon Sep 17 00:00:00 2001 From: Tom Blauwendraat Date: Tue, 18 Jul 2023 13:27:27 +0200 Subject: [PATCH] fixup! fixup! new: support annotated tags as merge source (fixes #27, fixes #28) --- git_aggregator/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git_aggregator/repo.py b/git_aggregator/repo.py index 242d94b..5d73a05 100644 --- a/git_aggregator/repo.py +++ b/git_aggregator/repo.py @@ -255,7 +255,7 @@ def init_repository(self, target_dir): # repository cmd += ('--filter=blob:none',) # Try to clone target branch, if it exists - rtype, _sha = self.query_remote_ref(repository, branch) + rtype, _ref, _sha = list(self.query_remote(repository, branch))[0] if rtype in {'branch', 'tag'}: cmd += ('-b', branch) # Emtpy fetch options to use global default for 1st clone