From e7896c33d904b55a270f655c3b264aea16cfe210 Mon Sep 17 00:00:00 2001 From: Felix Moessbauer Date: Thu, 5 Jan 2023 08:50:20 +0100 Subject: [PATCH] do not short-circuit on initial clone of repos This patch is a preparation for the cloning via reference logic. Instead of handling the initial-clone specially, we just run the full fetch_async logic. This is required as clones via a local mirror have a different remote url which needs to be rewritten. Signed-off-by: Felix Moessbauer Signed-off-by: Jan Kiszka --- kas/repos.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/kas/repos.py b/kas/repos.py index af0dcae..d615c4c 100644 --- a/kas/repos.py +++ b/kas/repos.py @@ -192,8 +192,6 @@ class RepoImpl(Repo): cwd=get_context().kas_work_dir) if retc == 0: logging.info('Repository %s cloned', self.name) - if not self.refspec.startswith('refs/'): - return retc # Make sure the remote origin is set to the value # in the kas file to avoid surprises