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 <felix.moessbauer@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Felix Moessbauer 2023-01-05 08:50:20 +01:00 committed by Jan Kiszka
parent c816b483fa
commit e7896c33d9

View File

@ -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