From 59108151f8a44d6359e19395acb27968fb9f9cb1 Mon Sep 17 00:00:00 2001 From: Yun Zheng Hu Date: Mon, 11 Sep 2023 13:48:37 +0000 Subject: [PATCH] Fix empty git scheme --- python/vyos/remote.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/vyos/remote.py b/python/vyos/remote.py index 525d66b765c..fc09c3a588b 100644 --- a/python/vyos/remote.py +++ b/python/vyos/remote.py @@ -386,8 +386,9 @@ def upload(self, location: str): # git clone path_repository = Path(directory) / "repository" + scheme = f"{scheme}://" if scheme else "" rc, out = rc_cmd( - [self.command, "clone", f"{scheme}://{netloc}{url}", str(path_repository), "--depth=1"], + [self.command, "clone", f"{scheme}{netloc}{url}", str(path_repository), "--depth=1"], env=env, shell=False, )