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